Forum OpenACS Q&A: Re: comparing two columns of different tables...

Collapse
Posted by Jeff Davis on
If you put a ? after \s* it should work right. I don't understand why it matters that \s* be non-greedy here but it does. Maybe someone can actually explain it to me...
% set x { 
Information</b></td>
<td>Blah blah Blah</td>
<td>more blah</td>
}
% regexp -nocase {nformation</b></td>\s*<td>(.*?)</td>} $x match foo
1
% set foo
Blah blah Blah</td>
<td>more blah
% regexp -nocase {nformation</b></td>\s*?<td>(.*?)</td>} $x match foo
1
% set foo
Blah blah Blah
%