Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64368
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: regex multiple patterns in order |
| Date | 2014-01-20 17:30 +0000 |
| References | (2 earlier) <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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5754.1390239060.18130.python-list@python.org> (permalink) |
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