Match newline in Cisco-AVPair[*]

Alan DeKok aland at
Wed Apr 15 16:08:24 CEST 2015

On Apr 15, 2015, at 9:29 AM, Kostas Zorbadelos <kzorba at> wrote:
> I am trying to perform a match against the full Cisco-AVPair string
> (Cisco-AVPair[*]) to get a specific part. The exact check I am
> performing is

  It would be better to loop over the Cisco-AVPairs with a "foreach", and the match the one you want.

> The problem is that the regex I am using matches all newlines, so I get
> all Cisco-AVpair[X] after my match.
> The regex /client-mac-address=(.*)$/ does not seem to work. Is there any
> way to match the newline and get only the mac-address I am interested
> in?

  Not really.

  Alan DeKok.

More information about the Freeradius-Users mailing list