Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27290
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Regex Question |
| Date | 2012-08-18 11:50 +0100 |
| References | <385e732e-1c02-4dd0-ab12-b92890bbed66@o3g2000yqp.googlegroups.com> <CAPTjJmp2f90Hc=ovoODGkmQ3VJoCu0XfofQmx_zXbSb+UXxXAg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3445.1345286931.4697.python-list@python.org> (permalink) |
On 18/08/2012 06:42, Chris Angelico wrote: > On Sat, Aug 18, 2012 at 2:41 PM, Frank Koshti <frank.koshti@gmail.com> wrote: >> Hi, >> >> I'm new to regular expressions. I want to be able to match for tokens >> with all their properties in the following examples. I would >> appreciate some direction on how to proceed. >> >> >> <h1>@foo1</h1> >> <p>@foo2()</p> >> <p>@foo3(anything could go here)</p> > > You can find regular expression primers all over the internet - fire > up your favorite search engine and type those three words in. But it > may be that what you want here is a more flexible parser; have you > looked at BeautifulSoup (so rich and green)? > > ChrisA > Totally agree with the sentiment. There's a comparison of python parsers here http://nedbatchelder.com/text/python-parsers.html -- Cheers. Mark Lawrence.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Regex Question Frank Koshti <frank.koshti@gmail.com> - 2012-08-17 21:41 -0700
Re: Regex Question Chris Angelico <rosuav@gmail.com> - 2012-08-18 15:42 +1000
Re: Regex Question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-18 11:50 +0100
Re: Regex Question Roy Smith <roy@panix.com> - 2012-08-18 09:08 -0400
Re: Regex Question Frank Koshti <frank.koshti@gmail.com> - 2012-08-18 07:21 -0700
Re: Regex Question Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-18 14:22 +0000
Re: Regex Question Frank Koshti <frank.koshti@gmail.com> - 2012-08-18 07:53 -0700
Re: Regex Question Peter Otten <__peter__@web.de> - 2012-08-18 17:48 +0200
Re: Regex Question Frank Koshti <frank.koshti@gmail.com> - 2012-08-18 08:56 -0700
Re: Regex Question Vlastimil Brom <vlastimil.brom@gmail.com> - 2012-08-18 17:50 +0200
Re: Regex Question Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-08-18 19:22 +0300
Re: Regex Question Frank Koshti <frank.koshti@gmail.com> - 2012-08-18 13:18 -0700
Re: Regex Question python@bdurham.com - 2012-08-18 12:36 -0400
Re: Regex Question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-18 13:30 -0400
csiph-web