Regular Expressions

John Machin sjmachin at lexicon.net
Sat Feb 10 20:13:38 EST 2007


On Feb 11, 10:26 am, "Geoff Hill" <thegeoffmeis... at gmail.com> wrote:
> What's the way to go about learning Python's regular expressions? I feel
> like such an idiot - being so strong in a programming language but knowing
> nothing about RE.

I suggest that you work through the re HOWTO
http://www.amk.ca/python/howto/regex/
and by work through, I don't mean "read". I mean as each new concept
is introduced:
1. try the given example(s) yourself at the interactive prompt
2. try variations on the examples
3. read the relevant part of the Library Reference Manual

Also I'd suggest reading threads in this newsgroup where people are
asking for help with re.

HTH,
John




More information about the Python-list mailing list