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

Collapse
Posted by Dan Wickstrom on
Another way to get this is to just match to the next '<':

% regexp -nocase {nformation</b></td>\s*<td>([^<]+)</td>} $x match foo
1
% set foo
Blah blah Blah

Generally, I try to avoid re's that have .* or .+ expressions in them, since it really slows down the evaluation. In this case, since you're doing a non-greedy evaluation, it shouldn't be a problem, but the interaction between greedy and non-greedy expressions can be tricky.