Subject: Re: [ast-users] Conditional regex in libast regex engine?
--------

> Users, does the libast regex engine have conditional regex? The
> Regular Expression Pocket reference lists this syntax but I can not
> get it working in ksh:
> (?(if)then|else)
> 
> Olga
> 

Not that I am aware.  ?(expr) means that expr is optional.

Does ERE support this?  If so, what is the synax?

If it is in ERE, then it should be possible to add to shell syntax since
they both compile to the same thing.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to