greedy versus non-greedy regexp on Fedora Core 1 and Core 3

greedy versus non-greedy regexp on Fedora Core 1 and Core 3

Post by rgristrop » Sun, 08 May 2005 09:23:56


Hi,

I am using wxBase 2.4.2 installed on Fedora Core 1 on one machine and
Fedora Core 3 on another machine. Both computers are the x86_64
architecture.

I have some code that uses wxRegex. When I compile this code on Fedora
Core 1, it seems to do non-greedy matches ( the '?' is in the regular
expression, indicating non-greedy). When I compile the same code on
Fedora Core 3, it seems to do greedy matches in spite of the question
mark in the regular expression.

Has anyone else seen this behaviour ? Do you know how to fix it ?

The wxRE_ADVANCED flag is not available on either platform.

Thanks in advance for any suggestions. If no one has heard of this
before I will make a little stand-alone main program that demonstrates
the problem.

--Rob
 
 
 

greedy versus non-greedy regexp on Fedora Core 1 and Core 3

Post by vadi » Sun, 08 May 2005 09:38:21


Do you use system or built in regex library? If you're using the system
one, its behaviour might have changed between the releases (although this
does seem unlikely, it's the only explanation I can see).

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.yqcomputer.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM

 
 
 

greedy versus non-greedy regexp on Fedora Core 1 and Core 3

Post by rgristrop » Mon, 09 May 2005 06:25:08

>Do you use system or built in regex library? If you're using the
system
this

That could explain what I am seeing. How can I tell which library is
being used, system or builtin ? I still have the config.cache files
from when each was installed. Is there a flag to the ./configure
script that will force the use of the builtin library ? I can just
re-install, using the builtin, on both computers and see if that fixes
my problem.

Thanks for your help.

--Rob