Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64368
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'expressions': 0.07; 'pypi': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'so?': 0.09; 'python': 0.11; 'jan': 0.12; 'language.': 0.14; 'readability': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:re': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; '>>>': 0.22; 'comfortable': 0.22; 'manual': 0.22; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'mon,': 0.24; "i've": 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'wonder': 0.29; 'gives': 0.31; '>>>>': 0.31; 'themselves': 0.32; 'regular': 0.32; 'text': 0.33; 'url:python': 0.33; 'monday,': 0.33; 'but': 0.35; 'module.': 0.36; 'doing': 0.36; 'url:org': 0.36; 'should': 0.36; 'example,': 0.37; 'january': 0.37; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'expression': 0.60; 'url:3': 0.61; 'first': 0.61; 'our': 0.64; 'become': 0.64; 'charset:windows-1252': 0.65; '20,': 0.68; 'reads': 0.68; 'home': 0.69; 'to,': 0.72; 'influences': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: regex multiple patterns in order |
| Date | Mon, 20 Jan 2014 17:30:41 +0000 |
| References | <CAPV1RAAiD3qWqrAJYc4yb80CaHG4A9N4jz4aY_CsyJr_nAUx9Q@mail.gmail.com> <mailman.5748.1390216721.18130.python-list@python.org> <roy-C6EC2C.09525920012014@news.panix.com> <lbjher$8hf$1@ger.gmane.org> <lbji4u$hk8$1@ger.gmane.org> <mailman.5752.1390236075.18130.python-list@python.org> <00b9351f-588f-4aa1-9251-e33748f45532@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | host-78-146-12-214.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
| In-Reply-To | <00b9351f-588f-4aa1-9251-e33748f45532@googlegroups.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5754.1390239060.18130.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1390239060 news.xs4all.nl 2975 [2001:888:2000:d::a6]:41443 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:64368 |
Show key headers only | View raw
On 20/01/2014 17:06, Rustom Mody wrote: > On Monday, January 20, 2014 10:10:32 PM UTC+5:30, Devin Jeanpierre wrote: >> On Mon, Jan 20, 2014 at 8:16 AM, Mark Lawrence wrote: >>> On 20/01/2014 16:04, Neil Cerutti wrote: >>>> I use regular expressions regularly, for example, when editing >>>> text with gvim. But when I want to use them in Python I have to >>>> contend with the re module. I've never become comfortable with >>>> it. >>> You don't have to, there's always the "new" regex module that's been on pypi >>> for years. Or are you saying that you'd like to use regex but other >>> influences that are outside of your sphere of control prevent you from doing >>> so? > >> I don't see any way in which someone uncomfortable with the re module >> would magically find themselves perfectly at home with the regex >> module. The regex module is the re module with some extra features >> (and complexity), is it not? > > I wonder whether the re/regex modules are at fault? > Or is it that in a manual whose readability is otherwise exemplary the re pages > are a bit painful > > eg reading http://docs.python.org/2/library/re.html#module-contents > the first thing one reads is compile > http://docs.python.org/3/library/re.html gives "re — Regular expression operations" and http://docs.python.org/3/library/re.html#regular-expression-syntax gives "Regular Expression Syntax". Are you saying that the module contents should come before both of these? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: regex multiple patterns in order Ben Finney <ben+python@benfinney.id.au> - 2014-01-20 22:18 +1100
Re: regex multiple patterns in order Roy Smith <roy@panix.com> - 2014-01-20 09:52 -0500
Re: regex multiple patterns in order Neil Cerutti <neilc@norwich.edu> - 2014-01-20 16:04 +0000
Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 16:16 +0000
Re: regex multiple patterns in order Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-01-20 08:40 -0800
Re: regex multiple patterns in order Rustom Mody <rustompmody@gmail.com> - 2014-01-20 09:06 -0800
Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 17:30 +0000
Re: regex multiple patterns in order Neil Cerutti <neilc@norwich.edu> - 2014-01-20 17:09 +0000
Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 17:33 +0000
csiph-web