12. Introduction to Python regular expressionsΒΆ
In this section, we give a brief introduction to Python regular expressions.
Regular expressions are expressions that define sets of strings by defining a pattern common to all members of the set.
- 12.1. Regular expression language
- 12.2. Regular expression functions and methods
- 12.3. Regular expression examples
- 12.4. Regular Expression Assignment Practice Lab
- 12.4.1. How to construct and debug regular expressions
- 12.4.2. Solving crosswords (requires NLTK)
- 12.4.3. Textonyms
- 12.4.4. Regular expression practice
- 12.4.5. An example that requires NLTK to be installed
- 12.4.6. Poker examples
- 12.4.7. Questions
- 12.4.8. How to do extraction
- 12.4.9. Tokenization (NLTK assumed)
- 12.4.10. Sentence boundary detection
- 12.4.11. Putting it all together
- 12.4.12. Example of using regular expressions to clean data