[Linux-aus] python regex

Cameron Simpson cs at zip.com.au
Tue Oct 8 09:24:27 EST 2013


On 08Oct2013 07:15, Daniel Black <daniel.subs at internode.on.net> wrote:
| On 07/10/13 18:55, Nick Edwards wrote:
| > On 10/7/13, Daniel Black <daniel.subs at internode.on.net> wrote:
| > what I am after is a python regex that matches on   "" or "foo"
| 
| (|foo)

Also:

  (foo)?

though I also would have used the first version.

Cheers,
-- 
Cameron Simpson <cs at zip.com.au>

Everything that can be invented has been invented.
        - Charles H. Duell, Commissioner, U.S. Office of Patents, 1899.



More information about the linux-aus mailing list