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 -- https://mail.python.org/mailman/listinfo/python-list