"""Within POSIX bracket expressions, the dot character matches a literal
dot. For example, a.c matches "*abc*", etc., but [a.c] matches only "*a*", "
*.*", or "*c*"."""

My bad.

2012/2/29 Alberto Martínez <[email protected]>

> if("%{User-Name}" =~ /\\\\?([^@\\\\]+)@?([-[:alnum:]._]*)?$/) {
>>
>
> I'm not that good with POSIX regex, but shouldn't it be
>
> if("%{User-Name}" =~ /\\\\?([^@\\\\]+)@?([-[:alnum:]\._]*)?$/) {
>
> AFAIK the dot "." means "any char" so I think it needs to be escaped.
>



-- 
Alberto Martínez Setién
Servicio Informático
Universidad de Deusto
Avda. de las Universidades, 24
48007 - Bilbao (SPAIN)
Phone:  +34 - 94 413 90 00 Ext 2684
Fax:    +34 - 94 413 91 01
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to