In article <fbd69b90-b709-48ed-a247-af943ddbc...@glegroupsg2000goo.googlegroups.com >, Carl Banks <pavlovevide...@gmail.com> wrote:
> On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote: > > One of the truly awesome things about the Python re library is that it > > lets you write complex regexes like this: > > > > pattern = r"""\b # beginning of line > > (?P<word>\w+) # a word > > \s+ # some whitespace > > (?P=word)(?!\w) # the same word again > > """ > > Perl has the X flag as well, in fact I'm pretty sure Perl originated it. > Just saying. Heh. Didn't know that. I wish people would use it more. -- http://mail.python.org/mailman/listinfo/python-list