Perl Primer - University of California, Davis

Searching: Regular Expressions. We have been manipulating strings for most of the semester. We have used slicing and built-in string methods. The task of searching strings and extracting text from them is so common that Python has a very powerful library called regular expressions (re) that handles many of these tasks quite elegantly. ................
................