Non capturing parenthesis in regexp causes seg fault.

Arran Cudbard-Bell A.Cudbard-Bell at sussex.ac.uk
Fri Feb 15 20:40:10 CET 2008


Arran Cudbard-Bell wrote:
> Arran Cudbard-Bell wrote:
>> Alan DeKok wrote:
>>> Arran Cudbard-Bell wrote:
>>>  
>>>> Hi,
>>>>
>>>> Got this on my 32bit intel box running Ubuntu Linux 6.10
>>>>
>>>> if("%{User-Name}" =~ /(?:.*)/){
>>>>     
>>>
>>>   I'm not sure that's a valid regular expression... '?' is usually a
>>> modifier...
>>>   
>> It is...
>>
>> It allows you to create backreferences but not capture the result 
>> directly.
>>
>> http://www.regular-expressions.info/brackets.html
>>
>> Pretty sure it's supported with the PCRE library.
But FR doesn't use the PCRE library, it uses the regular expression 
library included in libc ... POSIX.2 regular expressions.

So your right , non-capturing backreferences aren't supported.

Thanks Anyway !

Arran

-- 
Arran Cudbard-Bell (A.Cudbard-Bell at sussex.ac.uk)
Authentication, Authorisation and Accounting Officer
Infrastructure Services | ENG1 E1-1-08 
University Of Sussex, Brighton
EXT:01273 873900 | INT: 3900




More information about the Freeradius-Users mailing list