latest CVS doesnt like nas_table no more....

Alan Dekok aland at
Tue May 29 13:37:53 CEST 2007

Arran Cudbard-Bell wrote:
> Though regular expressions no longer work :(
>          # Stripped username
>          if("%{User-Name}" =~ "([-[:alnum:]._^@]+)@([-[:alnum:]._]*)"){

  That *never* worked in the config files.  Use:

  if ("%{User-Name}" =~ /([-[:alnum:]._^@]+)@([-[:alnum:]._]*)/) {

  i.e. /regex/ just like other languages.

  Alan DeKok.
--       - The web site of the book - The blog

More information about the Freeradius-Devel mailing list