Re: Escaped . does match any character

2010-01-18 Thread Matthias Cramer
Hi Alan

Alan DeKok wrote:
> Matthias Cramer wrote:
>> I have the following in my users file:
>>
>>
>> DEFAULT User-Name =~ ".+\...@example.com", Auth-Type := Accept,
>> Proxy-To-Realm := "DONOTREALM"
>>
>> This Regexp macthes not only user...@example.com but also
>> user...@example.com.
>>
>> Is this a bug, or do I have to escape the . in a different way ?
> 
>   You may need two \\

Thanks, this solved the problem.

Regards

  Matthias

-- 
Matthias Cramer / mc322-ripe   Senior Network & Security Engineer
iway AGPhone +41 43 500 
Josefstrasse 225   Fax   +41 44 271 3535
CH-8005 Zürich http://www.iway.ch/
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E  3959 B62F DF1C 2D20 8250


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Escaped . does match any character

2010-01-18 Thread Alan DeKok
Matthias Cramer wrote:
> Hi All
> 
> I have the following in my users file:
> 
> 
> DEFAULT User-Name =~ ".+\...@example.com", Auth-Type := Accept,
> Proxy-To-Realm := "DONOTREALM"
> 
> This Regexp macthes not only user...@example.com but also
> user...@example.com.
> 
> Is this a bug, or do I have to escape the . in a different way ?

  You may need two \\

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Escaped . does match any character

2010-01-18 Thread Matthias Cramer
Hi All

I have the following in my users file:


DEFAULT User-Name =~ ".+\...@example.com", Auth-Type := Accept,
Proxy-To-Realm := "DONOTREALM"

This Regexp macthes not only user...@example.com but also
user...@example.com.

Is this a bug, or do I have to escape the . in a different way ?

Regards

  Matthias

-- 
Matthias Cramer / mc322-ripe   Senior Network & Security Engineer
iway AGPhone +41 43 500 
Josefstrasse 225   Fax   +41 44 271 3535
CH-8005 Zürich http://www.iway.ch/
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E  3959 B62F DF1C 2D20 8250


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html