[RADIATOR] regex match in realm

Hugo Veiga hveiga at ubi.pt
Mon Jul 30 09:44:03 CDT 2012


Hi,

I'm having trouble in a regex in realm Handler:

<Handler User-Name=/^[a-zA-Z0-9][a-zA-Z0-9._-]/,
Realm=/^[a-zA-Z0-9\.-]*?\.([a-zA-Z]){2,4}$/,
Client-Identifier=/^(?!4ProxyServer$)/>

The problem is in the Realm part:

If I put the regex like mentioned and test the user: test at ua.pt the string
will never math!.

But I've tried out this regex in various regex testers and it should be
working.

If I take out maximum number of chars of 4 and just
put: Realm=/^[a-zA-Z0-9\.-]*?\.([a-zA-Z]){2}$/ it will match as expected
since pt only have 2 chars.


Is this some kind of bug or I'm I doing something really wrong.


Best regards,
Hugo Veiga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20120730/298db1e5/attachment.html 


More information about the radiator mailing list