Combining 2 regexes to 1

Chris Rebert clp2 at rebertia.com
Sun Aug 29 22:51:59 EDT 2010


On Sun, Aug 29, 2010 at 7:40 PM, Niklasro(.appspot) <niklasro at gmail.com> 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

Er,

/a(/?)([^/]*)

?

Cheers,
Chris
--
Parentheses probably extraneous.



More information about the Python-list mailing list