Combining 2 regexes to 1

MRAB python at mrabarnett.plus.com
Sun Aug 29 23:07:13 EDT 2010


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), #list



More information about the Python-list mailing list