Re: non-greedy is too greedy
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: non-greedy is too greedy

From: <Markus.Elfring@web.de>
Date: Thu Jun 30 2005 - 12:32:45 CEST

> From the reference in Michael's post, I understand that the observed
> behaviour is known and accepted (as difficult to mend), and that I did
> not misunderstand something.

Does the following example show another unexpected result for you?

% regexp {^|(.+?)|} {|A|B|} X field
1
% set field
|A|B|

Regards,
Markus
Received on Thu Sep 29 14:24:00 2005