Hi,
I'd like to use a program to convert between basic regular expression
(BRE) and extended regular expression (ERE). (see man grep for the
definition of BRE and ERE). Does python has a module for this purpose?
Thanks.
--
Regards,
Peng
--
https://mail.python.org/mailman/listinfo/python-list
Ian Kelly :
> On Fri, May 25, 2018 at 11:00 PM, Chris Angelico wrote:
>> On Sat, May 26, 2018 at 2:46 PM, Steven D'Aprano
>>> class State(Enum):
>>> Maybe = 2
>>
>> # Tri-state logic
>> Maybe = object()
>
> The enum has a nice __str__ though.
That's why I usually use string sentinels:
May