Re: problem with regex, how to conclude more than one character

2008-11-07 Thread tecspring
On Nov 7, 3:13 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 6, 2008 at 11:06 PM,  <[EMAIL PROTECTED]> wrote: > > I always have no idea about how to express "conclude the entire word" > > with regexp,  while using python, I encountered this problem again... > > > for example, if I wan

Re: problem with regex, how to conclude more than one character

2008-11-06 Thread tecspring
On Nov 7, 3:06 pm, [EMAIL PROTECTED] wrote: > I always have no idea about how to express "conclude the entire word" > with regexp,  while using python, I encountered this problem again... > > for example, if I want to match the "string" in "test a string", > re.findall(r"[^a]* (\w+)","test a string

problem with regex, how to conclude more than one character

2008-11-06 Thread tecspring
I always have no idea about how to express "conclude the entire word" with regexp, while using python, I encountered this problem again... for example, if I want to match the "string" in "test a string", re.findall(r"[^a]* (\w+)","test a string") will work, but what if there is not "a" but "an"(t