Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5524
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!weretis.net!feeder5.news.weretis.net!newsfeed.datemas.de!newsfeed.x-privat.org!feeder.news.tin.it!spool.news.tin.it!not-for-mail |
|---|---|
| From | Tracubik <affdfsdfdsfsd@b.com> |
| Subject | regular expression i'm going crazy |
| Newsgroups | comp.lang.python |
| User-Agent | Pan/0.134 (Wait for Me; GIT cb32159 master) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Date | 16 May 2011 16:25:00 GMT |
| Lines | 22 |
| Message-ID | <4dd14fdb$0$18238$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
| X-Comments | Please send technical notifications to newsmaster@tin.it |
| NNTP-Posting-Host | 79.18.254.7 |
| X-Trace | 1305563100 reader2.news.tin.it 18238 79.18.254.7:7701 |
| X-Complaints-To | Please send abuse reports to abuse@retail.telecomitalia.it |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5524 |
Show key headers only | View raw
pls help me fixing this: import re s = "linka la baba" re_s = re.compile(r'(link|l)a' , re.IGNORECASE) print re_s.findall(s) output: ['link', 'l'] why? i want my re_s to find linka and la, he just find link and l and forget about the ending a. can anyone help me? trying the regular expression in redemo.py (program provided with python to explore the use of regular expression) i get what i want, so i guess re_s is ok, but it still fail... why? help! Nico
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
regular expression i'm going crazy Tracubik <affdfsdfdsfsd@b.com> - 2011-05-16 16:25 +0000 Re: regular expression i'm going crazy Robert Kern <robert.kern@gmail.com> - 2011-05-16 11:51 -0500 Re: regular expression i'm going crazy Alexander Kapps <alex.kapps@web.de> - 2011-05-16 19:01 +0200 Re: regular expression i'm going crazy andy baxter <andy@earthsong.free-online.co.uk> - 2011-05-16 18:11 +0100
csiph-web