Escaped . does match any character
Hi All I have the following in my users file: DEFAULT User-Name =~ ".+\.xy@example.com", Auth-Type := Accept, Proxy-To-Realm := "DONOTREALM" This Regexp macthes not only user.xy@example.com but also useraxy@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 AG Phone +41 43 500 1111 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
Matthias Cramer wrote:
Hi All
I have the following in my users file:
DEFAULT User-Name =~ ".+\.xy@example.com", Auth-Type := Accept, Proxy-To-Realm := "DONOTREALM"
This Regexp macthes not only user.xy@example.com but also useraxy@example.com.
Is this a bug, or do I have to escape the . in a different way ?
You may need two \\ Alan DeKok.
Hi Alan Alan DeKok wrote:
Matthias Cramer wrote:
I have the following in my users file:
DEFAULT User-Name =~ ".+\.xy@example.com", Auth-Type := Accept, Proxy-To-Realm := "DONOTREALM"
This Regexp macthes not only user.xy@example.com but also useraxy@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 AG Phone +41 43 500 1111 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
participants (2)
-
Alan DeKok -
Matthias Cramer