Re: %d not working in re at Python 2.7?

2012-05-14 Thread Vacu
e and didn't examine document carefully. I apologize for you time spent on it. -Vacu On Mon, May 14, 2012 at 4:20 PM, Tim Chase wrote: > On 05/11/12 13:58, vacu wrote: > > I am frustrated to see %d not working in my Python 2.7 re.search, like > > this example:

%d not working in re at Python 2.7?

2012-05-14 Thread vacu
bute 'group' \d works fine: >>> (re.search('\d+', "asdfdsf78asdfdf")).group(0) '78' And google search ignores % in their search, so I failed to find answer from Python mailing list or web, Do you have any idea what's problem here? Thanks a head Vacu -- http://mail.python.org/mailman/listinfo/python-list