Problem with setting substring match variables (%{1} etc.)

Alan DeKok aland at deployingradius.com
Wed Aug 8 16:04:23 CEST 2007


Arran Cudbard-Bell wrote:
> Also gets very uggly when you multiple instances of a subcapture group
> e.g :
> 
> ^(a|b){3}(.)$
> 
> So you have to write them out in full :
> 
> ^(a|b)(a|b)(a|b)(.)^

  Why?

  ^((a|b){3})(.)$  with input "aaax"


  %{1} => aaa
  %{2} => a
  %{3} => x

  Alan DeKok.



More information about the Freeradius-Devel mailing list