Combining 2 regexes to 1

Niklasro(.appspot) niklasro at gmail.com
Mon Aug 30 00:03:07 EDT 2010


Many thanks. It works. You also helped me refactor these

('/([0-9]*)/?([^/]*)',AById),#id2a
('/([0-9]*)',AById)

to just 1

('/([0-9]*)/?([^/]*)',AById),#id2a

It's from the appspot framework.
Sincerely
Niklas R



More information about the Python-list mailing list