Substring using Unlang?

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Jul 13 01:36:02 CEST 2013


On 13 Jul 2013, at 00:14, Peter Lambrechtsen <peter at crypt.co.nz> wrote:

> On Wed, Jul 10, 2013 at 6:34 PM, Olivier Beytrison
> <olivier at heliosnet.org> wrote:
>> On 10.07.2013 07:48, Olivier Beytrison wrote:
>>> if ( ADSL-Agent-Remote-Id =~ /(.{0,31})$/ ) {
>> 
>> if ( ADSL-Agent-Remote-Id =~ /(.{1,32})$/ ) {
>> 

Though you know you're not specifying offset and length, so you didn't need to increment the second number ;)

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team



More information about the Freeradius-Users mailing list