Hi,
I'm facing problem using a non greedy search. Consider the following
example
% set data "Facing problem with non greedy search"
Facing problem with non greedy search
% regexp -nocase {(.*?g)(.*)} $data junk match1 match2
1
% set match1
Facing
% set match2
%
As expected value set...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.