Re: Combining 2 regexes to 1

2010-08-29 Thread Niklasro(.appspot)
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: Combining 2 regexes to 1

2010-08-29 Thread MRAB
On 30/08/2010 03:40, Niklasro(.appspot) wrote: Hello, Suspecting it's completely doable combining these 2 regexes to just 1 expression I'm looking for the working syntax. If you know then kindly inform. Thanks in advance ('/a/([^/]*)',List), #list ('/a([^/]*)',List), #list ('/a/?([^/]*)', List)

Re: Combining 2 regexes to 1

2010-08-29 Thread Chris Rebert
On Sun, Aug 29, 2010 at 7:40 PM, Niklasro(.appspot) wrote: > Hello, Suspecting it's completely doable combining these 2 regexes to > just 1 expression I'm looking for the working syntax. If you know then > kindly inform. Thanks in advance > ('/a/([^/]*)',List), #list > ('/a([^/]*)',List), #list E

Combining 2 regexes to 1

2010-08-29 Thread Niklasro(.appspot)
Hello, Suspecting it's completely doable combining these 2 regexes to just 1 expression I'm looking for the working syntax. If you know then kindly inform. Thanks in advance ('/a/([^/]*)',List), #list ('/a([^/]*)',List), #list Niklas Rosencrantz -- http://mail.python.org/mailman/listinfo/python-li