[RADIATOR] regex match in realm

António Mendes antonio.mendes at wit-software.com
Tue Jul 31 04:19:28 CDT 2012


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
>
>
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20120731/21bac3f4/attachment.html 


More information about the radiator mailing list