Translate characters

Alan DeKok aland at deployingradius.com
Mon May 7 14:52:06 CEST 2012


Xbert_badstuber wrote:
> Error: Consecutive conditions at (.)/(.):(.*)$/)

  It's a regex error.

>  if (NAS-Port-Id =~ /^(.)/(.)/(.):(.*)$/) { 

  /foo/bar/baz is wrong

  You need something like:

	/^(.)\/(.)\/(.):(.*)$/

  i.e. escape the internal '/' characters.

  Alan DeKok.


More information about the Freeradius-Users mailing list