David Champion <[EMAIL PROTECTED]> wrote on Wed, 24 May 2000:
> I briefly tried using parens in a regexp way -- e.g.,
>       ~L (alice|bob|carol)
> but that doesn't seem to work at all.

I didn't look into this deeply, but just to throw an idea out --
did you try something like:

  ^~L (alice|bob|carol)

?

> parens just to see what happens, I get "Unmatched ( or \(".

That sounds like a parson problem... Hmm, yes, if you escape the ()'s,
then you need to escape the |'s too, or else they will be seen as as
separating patterns, as opposed to separating expressions within a
single pattern.


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
If it wasn't for C, we'd be using BASI, PASAL and OBOL.

Reply via email to