Regular expression help
Syver Enstad
syver at NOSPAMcyberwatcher.com
Thu May 3 18:42:27 EDT 2001
Tip Daniel, check out the tools/scripts folder in your python installation
(on windows it's typically pythonXX/tools/scripts) and run the script named
redemo.py. This is an excellent way of familiarizing yourself with and
testing regular expressions.
The re how to is also a good thing to be "armed" with.
"Daniel Klein" <danielk at aracnet.com> wrote in message
news:rcl2ft0flqof5nhc2kbck2q4sqj648qlls at 4ax.com...
> Help! I've _never_ done a regular expression and I've got an emergency
> situation where I need to find all occurrences of
>
> string1 + '(' + string2 + '<' + string3 + '>)'
>
> and there could be spaces betwixt any of the components.
>
> For example,
>
> abc123(def456<ghi789>)
> or
> X ( Y < Z > )
>
> Any immediate help appreciated. In the mean time, I'm going to try to work
it
> out for meself.
>
> Thanks,
> Daniel Klein
More information about the Python-list
mailing list