# author: <NAME>
# version: May.15.2020
# Practice Exercises: Regular Expressions

# https://www.w3resource.com/python-exercises/re/index.php

import re

# TODO: check that a string contains only a certain set of characters(a-z, A-Z and 0-9)
charRegex = re.compile(r'\d')
test_str = str('My name is Allyson and I am 20 years old')

# TODO: match a string that contains only upper and lowercase letters, numbers, and underscores

# TODO: remove leading zeros from an IP address

# TODO: convert a date from yyyy-mm-dd to mm-dd-yyyy

# TODO: separate and print the numbers of a given string

# TODO: abbreviate Road as Rd. in a home address

# TODO: replace all spaces with a -

# TODO: find all words that are 5 characters long in a string

# TODO: extract values between quotation marks in a string

# TODO: remove all the .com from a list of websites

# author: <NAME>
# version: May.15.2020
# Practice Exercises: Regular Expressions

# https://www.w3resource.com/python-exercises/re/index.php

import re

# TODO: check that a string contains only a certain set of characters(a-z, A-Z and 0-9)
charRegex = re.compile(r'\d')
test_str = str('My name is Allyson and I am 20 years old')

# TODO: match a string that contains only upper and lowercase letters, numbers, and underscores

# TODO: remove leading zeros from an IP address

# TODO: convert a date from yyyy-mm-dd to mm-dd-yyyy

# TODO: separate and print the numbers of a given string

# TODO: abbreviate Road as Rd. in a home address

# TODO: replace all spaces with a -

# TODO: find all words that are 5 characters long in a string

# TODO: extract values between quotation marks in a string

# TODO: remove all the .com from a list of websites

# author: <NAME> # version: May.15.2020 # Practice Exercises: Regular Expressions # https://www.w3resource.com/python-exercises/re/index.php # TODO: check that a string contains only a certain set of characters(a-z, A-Z and 0-9) # TODO: match a string that contains only upper and lowercase letters, numbers, and underscores # TODO: remove leading zeros from an IP address # TODO: convert a date from yyyy-mm-dd to mm-dd-yyyy # TODO: separate and print the numbers of a given string # TODO: abbreviate Road as Rd. in a home address # TODO: replace all spaces with a - # TODO: find all words that are 5 characters long in a string # TODO: extract values between quotation marks in a string # TODO: remove all the .com from a list of websites