On 15 Apr 2015, at 15:08, Alan DeKok <aland@deployingradius.com> wrote:
On Apr 15, 2015, at 9:29 AM, Kostas Zorbadelos <kzorba@otenet.gr> 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.
No, the way he's doing it should work.
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?
Could you provide debug output, I don't really understand what you're trying to say. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2