regex multiple patterns in order

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Jan 20 12:33:46 EST 2014


On 20/01/2014 17:09, Neil Cerutti wrote:
> On 2014-01-20, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
>> On Mon, Jan 20, 2014 at 8:16 AM, Mark Lawrence
>> <breamoreboy at yahoo.co.uk> 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?
>
> It's a negative feedback loop. I'd have to use it more often than
> I do to get comfortable. There's no way a library, even a really
> good one, can compete with built-in syntax support. The BDFL must
> have wanted it to be this way.
>

Regex was originally scheduled to go into 3.3 and then 3.4 but not made 
it.  I assume that it will again be targeted in the 3.5 release 
schedule. Three strikes and you're out is a BDFL plan?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list