[Tutor] python challenges

D. Hartley denise.hartley at gmail.com
Fri May 6 02:33:21 CEST 2005

They do seem to be useful! But with all those special characters, it
certainly doesnt make for an easy read.  I think I'm making some
progress - I got it to make me a list of all the
chunks (477 of them?!?!) - turns out the first time through I missed
something very small (and very helpful, in this case):  [A-Z].

Thanks for the pointers :) 


On 5/5/05, Max Noel <maxnoel_fr at yahoo.fr> wrote:
> On May 6, 2005, at 01:10, D. Hartley wrote:
> > Anyone have a gentle hint, or pointer to another 'beginner' tutorial
> > to regular expressions?
> >
> > Thanks! I dont want to get stuck here in the riddles!
> >
> > ~Denise
>     I learned most of what I know about regular expressions while I
> was learning Perl a few years ago. Most Perl books and tutorials
> include a small part that deals with RE's, but perhaps that's not
> gonna help you much.
>     However, I find that the documentation for the Python "sre"
> module is quite good. You may want to have a look at it -- should be
> enough for what you have to do with this riddle.
> (Also, note that however simple they may seem, one can never
> completely master regular expressions. There are entire books
> dedicated to the things, and when properly used, they're the most
> powerful text processing tool available for any language. In other
> words, try to remember what you'll learn about them: they're very
> useful.)
> -- Max
> maxnoel_fr at yahoo dot fr -- ICQ #85274019
> "Look at you hacker... A pathetic creature of meat and bone, panting
> and sweating as you run through my corridors... How can you challenge
> a perfect, immortal machine?"

More information about the Tutor mailing list