10. 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.
- 10.1. Regular expression language
- 10.2. Regular expression functions and methods
- 10.3. Regular expression examples
- 10.4. Regular Expression Assignment Practice Lab
- 10.4.1. How to construct and debug regular expressions
- 10.4.2. Solving crosswords (requires NLTK)
- 10.4.3. Textonyms
- 10.4.4. Regular expression practice
- 10.4.5. An example that requires NLTK to be installed
- 10.4.6. Poker examples
- 10.4.7. Questions
- 10.4.8. How to do extraction
- 10.4.9. Tokenization (NLTK assumed)
- 10.4.10. Sentence boundary detection
- 10.4.11. Putting it all together
- 10.4.12. Example of using regular expressions to clean data