[Tutor] python challenges

Max Noel maxnoel_fr at yahoo.fr
Fri May 6 02:46:06 CEST 2005


On May 6, 2005, at 01:33, D. Hartley wrote:

> 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
> {uppercaseuppercaseuppercaselowercaseuppercaseuppercaseuppercase}
> 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 :)
>
> ~Denise


     Oh, here's another piece of advice when you're dealing with  
regular expressions: they use a lot of backslashes, so use raw  
strings in order not to have to escape them all.

-- 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