views:

175

answers:

6

I read through the official regular expression howto which wasn't gentle enough for me. Is there anything better/easier out there?

A: 

I'm guessing you're new to regular expressions? Maybe one of these might help?

Get your understanding of them solid first - have a play with Regexpal to firm up your understanding and then have another look at the Python implementation.

If you've got something specific in mind that you want to solve, post it and maybe we can give some examples to help you understand it.

Jon Cage
I already played a bit, but I feel like a newbie still, and need better grounding.
Tshepang
A: 

To understand the regular expressions first check here and try Regex Coach But before these do not forget to search regex in stackoverflow.

berkay
+3  A: 

I liked the section on regular expressions from Google's Python class. There's also the video for this section. I thought it was pretty gentle.

Justin Peel
A: 

The Regular Expression chapter from Dive Into Python has a good introduction. Also, see the Python Regular Expression Testing Tool to run expressions interactively via a browser.

Tim
+2  A: 

This isn't python specific, but looks like a good introduction:

The absolute bare minimum every programmer should know about regular expressions

Truthfully, I've always ever referred to the python documentation for regex and never read the above article (I only seem to have bookmarked it at some point). Anyway, it seems to cover all the basics. There are even 2 follow-up posts linked at the end for more advanced uses.

Alinium
+1  A: 

I personally use the tutorial at http://www.amk.ca/python/howto/regex/ combined with Kodos, a free python regular expression debugger for testing and experimenting.

I often also use the regular expressions pocket reference, though it's not free.

David Morrissey