On 03/29/2011 12:56 PM, bearophile wrote:
Dmitry Olshansky:

Others (except (?P<name>) and (?P=name) ) also considered common extensions and 
I planed to add them plus  regex comment (#...) where all of ... simply have no 
effect on matching.

Beside the (#...) comments in Python you have also the verbose regex, that 
allow to put whispace and free #... comments with no parentheses. I find this 
one of the nicest features, because it allows you to format your regex.

Same for me. That the feature #1 of python regexes.

    valuePattern = r"""
        [a-zA-Z][a-zA-Z0-9]* |  # symbol or
        [+-]?[0-9]+(\.[0-9]+)?  # number
    """

Denis
--
_________________
vita es estrany
spir.wikidot.com

Reply via email to