Making regular expressions more friendly
Jan Decaluwe
jand at easics.be
Tue Oct 5 11:05:35 EDT 1999
Ian Clarke wrote:
>
> I have never liked regular expressions, they seem to come from the Perl
> school of programming (whose motto is "If nobody else `can understand my
> code, they can never fire me!"). Of course, it is not actually the
> regular expressions themselves that annoy me, it is the language they
> are written in.
>
> What if, instead of using '(hello)*' you could use 'multiple("hello")',
> and other such long-winded replacements.
That would be so nice that it has been done: take a look
at the source of python's standard tokenize.py module.
--
Jan Decaluwe Easics
Design Manager System-on-Chip design services
+32-16-395 600 Interleuvenlaan 86, B-3001 Leuven, Belgium
mailto:jand at easics.be http://www.easics.com
More information about the Python-list
mailing list