in reply to problem with parsing

Hi Anonymous Monk,

Use 'while' statement instead of 'if' statement. 'if' statement will match only once. So if you use 'while' statement, you can match more than once. Instead of regex, you can also use some html modules to accomplish your requirement. Also take a look at perlsyn

while ($text=~ m|<td>((?:(?!</td>).)*)</td>|g) {print "$1\n";}

Prasad