Python regex exercises
Find and check patterns in text with Python regular expressions, on problems with tests.
Beginner
Intermediate
- 283. Make a URL SlugTurn a blog post's title into a clean web address65 XP12 min
- 307. Parse a Web Server Log LineTurn one line of a busy server's log into tidy fields70 XP15 min
- 320. Redact Card NumbersHide card numbers in a chat log but keep the last four digits75 XP15 min
- 332. Normalize Phone NumbersTen digits, a dozen ways to type them, one tidy format80 XP16 min
- 336. Extract Dates From TextFish every real calendar date out of a messy paragraph85 XP18 min
Other topics
- Python Basics
- Strings
- Lists
- Dictionaries and sets
- Loops
- Functions
- Math
- Sorting and searching
- Two pointers
- Sliding window
- Stacks and queues
- Recursion and backtracking
- Dynamic programming
- Greedy
- Graphs
- Trees
- Bit manipulation
- Classes
- Iterators and generators
- Parsing
- Simulation
- Python idioms
- Codes and ciphers
- Working with data
- Grids and matrices
- Geometry
- Games and puzzles
- Heaps
- Data structures
Or see every challenge, with study plans, today's challenge and duels.