Re: [Python-Dev] Adding function checks to regex

2011-03-18 Thread Guido van Rossum
Probably best discussed on python-ideas... On Fri, Mar 18, 2011 at 4:04 PM, MRAB wrote: > Some of those who are relative new to regexes sometimes ask how to write a > regex which checks that a number is in a range or is a valid date. Although > this may be possible, it certainly isn't easy. > > F

[Python-Dev] Adding function checks to regex

2011-03-18 Thread MRAB
Some of those who are relative new to regexes sometimes ask how to write a regex which checks that a number is in a range or is a valid date. Although this may be possible, it certainly isn't easy. From what I've read, Perl has a way of including code in a regex, but I don't think that's a goo