Regex Split on forward slash?

Arran Cudbard-Bell a.cudbardb at
Tue Dec 17 17:20:29 CET 2013

On 17 Dec 2013, at 12:19, Phil Mayers <p.mayers at IMPERIAL.AC.UK> wrote:

> On 17/12/13 11:41, Arran Cudbard-Bell wrote:
>> No, g won't work. You probably need \\/ because of the multiple levels of escaping...
> Really? Isn't the delimiter handled at top-level of the unlang parser?

The regex delimiter is hardcoded to be a '/', we only support the case insensitive flag,
and i'm fairly sure forward slashes need to be double escaped.

> I should resurrect my "use any delimiter / more flags / remove double-escaping craziness" regexp patch:
> if (Attr =~ !no\tleaning/toothpicks!giu) {


Arran Cudbard-Bell <a.cudbardb at>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the Freeradius-Users mailing list