Regexp problem with `('

Zeng Nan jqdkf at science.nus.edu.sg
Thu Mar 22 04:37:56 EDT 2007


On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote:
> I have  the following text
> 
> <title>Goods Item  146 (174459989)  - OurWebSite</title>
> 
> 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 BLOG: http://zengnan.blogspot.com
Public Key: http://pgp.mit.edu/ | www.keyserver.net

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In Lexington, Kentucky, it's illegal to carry an ice cream cone in your
pocket.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20070322/411a5ef3/attachment.sig>


More information about the Python-list mailing list