Python regular expression question
Michele Simionato
mis6 at pitt.edu
Sun Jun 8 09:11:52 EDT 2003
"DJ" <dj3000 at iinet.net.au.nospam> wrote in message news:<3ee30318$0$31508$5a62ac22 at freenews.iinet.net.au>...
> Hi
>
> I cant figure out a re that matches a string in a sentance.
> The string can be anywhere in the sentance
>
> eg
>
> "dog"
>
> I walked my dog today
>
> Cheers
> Adam
r'\bdog\b'
You may want to look at
http://www.rexx.com/~dkuhlman/python_201/python_201.html
Michele
More information about the Python-list
mailing list