Match newline in Cisco-AVPair[*]
a.cudbardb at freeradius.org
Wed Apr 15 17:15:22 CEST 2015
> On 15 Apr 2015, at 15:08, Alan DeKok <aland at deployingradius.com> wrote:
> On Apr 15, 2015, at 9:29 AM, Kostas Zorbadelos <kzorba at 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
Could you provide debug output, I don't really understand what you're trying to say.
Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Freeradius-Users