[RADIATOR] regex match in realm

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


Hi,

Have you surrounded it with double quotes?

Regards,
António Mendes


Em 31-07-2012 10:39, Hugo Veiga escreveu:
> 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 <http://ua.pt>
> ua.pt <http://ua.pt>
> ua.ppt
> ua.ptpt
> user at ua.pptt
>
> This not allows:
> @ua.pt <http://ua.pt>
> ""saa at ua.pt <http://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://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/68ae4ab6/attachment-0001.html 


More information about the radiator mailing list