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
In reply to Re: problem with parsing
by prasadbabu
in thread problem with parsing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |