Code Challenges on Regular Expressions

Assess your ability to work with regular expressions using Python.

Challenge 1: Shorthand character classes

We’ve already imported the pandas and re libraries and loaded the dataset into ip_addresses_df. Write code to extract the IP addresses from the practice_logs.csv dataset using the digit shorthand character class and a quantifier. Then save the extracted IP addresses in the ip_addresses_df variable.

Get hands-on with 1200+ tech skills courses.