[RADIATOR] regex match in realm
Hugo Veiga
hveiga at ubi.pt
Tue Jul 31 04:39:34 CDT 2012
Hi,
Same result, if I use a coma in the regex it will not match even if it
should.
I'm using radiator 4.7.3
Regards,
Hugo Veiga
Hi Hugo,
I think that your regexp is badly formed, could you please test the
following and post the results:
/^([a-zA-Z0-9\.-]+@?)*[a-zA-Z0-9\.-]*\.([a-zA-Z]){2,4}$/
This allows strings of type:
user at ua.pt
ua.pt
ua.ppt
ua.ptpt
user at ua.pptt
This not allows:
@ua.pt
""saa at ua.pt
....
Regards,
António Mendes.
Em 31-07-2012 10:03, Hugo Veiga escreveu:
> Hi,
>
> I tried addind the double quotes to surround the Realm but it still
doesn't beave as expected.
>
>
>
> The realmua.pt <http://ua.pt> should be a match but with the ,4 it
doesn't work !
>
> Do you have more advice? They are very welcome.
>
> Thanks,
> Hugo Veiga
>
>
> On 07/30/2012 05:44 PM, Hugo Veiga wrote:
>
> >/ 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$)/>
> /
> Hello Hugo,
>
> I tried the handler and got this:
>
> ERR: Bad attribute=value pair: 4}$/,
> Client-Identifier=/^(?!4ProxyServer$)/
>
> Try this instead:
>
> <Handler User-Name=/^[a-zA-Z0-9][a-zA-Z0-9._-]/,
> Realm="/^[a-zA-Z0-9\.-]*?\.([a-zA-Z]){2,4}$/",
> Client-Identifier=/^(?!4ProxyServer$)/>
>
> I added the double quotes to surround the Realm value since the value
> contains a comma.
>
> Thanks,
> Heikki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20120731/3a776cc0/attachment.html
More information about the radiator
mailing list