octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCRE library requirement


From: Rik
Subject: Re: PCRE library requirement
Date: Mon, 31 Jan 2011 14:24:35 -0800

Richard Campbell wrote:
> On Jan 31, 2011, at 4:54 PM, Rik wrote:
> 
>>>>>> str = "a ab abc"
>>>>>> results = regexp (str, '\w+', "match")
>>>>>>
>>>>>> If that fails because the actual libraries are truly POSIX
>>>>> compliant then I
>>>>>> think we should make PCRE a requirement. It is widely available and a
>>>>>> number of patterns in the code use the very convenient '\s' or '\w'
>>>>>> patterns rather than character classes.
> 
> 
> octave:1> str = "a ab abc"
> str = a ab abc
> octave:2> results = regexp (str, '\w+', "match")
> results = {}(1x0)
> 
Okay, this confirms that POSIX RE aren't going to be enough without
extensive verification of the Octave source code.  At least having PCRE as
a requirement will simplify things in Octave as there will be only one
syntax to support.

--Rik


reply via email to

[Prev in Thread] Current Thread [Next in Thread]