Re: Regexp problem with `('

2007-03-22 Thread John Nagle
Johny wrote: > I have the following text > > Goods Item 146 (174459989) - OurWebSite > > from which I need to extract > `Goods Item 146 ' > > Can anyone help with regexp? > Thank you for help > L. In general, parsing HTML with regular expressions is a bad idea. Usually, you use somethin

Re: Regexp problem with `('

2007-03-22 Thread Paul McGuire
On Mar 22, 3:26 am, "Johny" <[EMAIL PROTECTED]> wrote: > I have the following text > > Goods Item 146 (174459989) - OurWebSite > > from which I need to extract > `Goods Item 146 ' > > Can anyone help with regexp? > Thank you for help > L. Here's the immediate answer to your question. import r

Re: Regexp problem with `('

2007-03-22 Thread Bruno Desthuilliers
Johny a écrit : > I have the following text > > Goods Item 146 (174459989) - OurWebSite > > from which I need to extract > `Goods Item 146 ' > > Can anyone help with regexp? Sure : the documentation is here: http://docs.python.org/lib/module-re.html And there's a nice tutorial here: http:/

Re: Regexp problem with `('

2007-03-22 Thread Zeng Nan
On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote: > I have the following text > > Goods Item 146 (174459989) - OurWebSite > > from which I need to extract > `Goods Item 146 ' > > Can anyone help with regexp? > Thank you for help > L. (Goods\s+Item\s+146\s+) -- Zeng Nan MY

Regexp problem with `('

2007-03-22 Thread Johny
I have the following text Goods Item 146 (174459989) - OurWebSite from which I need to extract `Goods Item 146 ' Can anyone help with regexp? Thank you for help L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regexp problem with `('

2007-03-22 Thread Steve Holden
Zeng Nan wrote: > On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote: >> I have the following text >> >> Goods Item 146 (174459989) - OurWebSite >> >> from which I need to extract >> `Goods Item 146 ' >> >> Can anyone help with regexp? >> Thank you for help >> L. > > (Goods\s+Item\s+146\s+)