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 Charles Yan
Really thanks for quickly reply Chris! Actually I tried BeautifulSoup and it's great. But I'm not very familiar with it and it need more codes to parse the html and get the right text. I think regexp is more convenient if there is a way to filter out the list just in one line:) I did this all the w

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

2008-11-06 Thread Chris Rebert
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 want to match the "string" in "test a string", > re.findall(r"[^a]* (\w+

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