help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnu-radius] rewrite and regex?


From: Olaf Seidel
Subject: [Help-gnu-radius] rewrite and regex?
Date: Tue, 29 Jan 2002 16:30:14 +0100

Hi list,

I'd like to use regex in a rewrite function. In this regex there has to be an 
OR. I tried the following:

if ((s = substr(%[User-Name], x, y)) =~ "^xx$|^xy$") {and so on}

If I use only
^xx$
as regex in the example above, everything works, but the | (or) seems not to 
work.
I've also tried
\(^xx$\)\|\(^xy$\)
(^xx$)\|(^xy$)
\(^xx$\)|\(^xy$\)
as regex's. Doesn't work. Have I made a mistake, or is there any workaround?

Thanx in advance...
Regards
Olaf Seidel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]