As marto suggested it is best to use the modules, which he has suggested. If you want to try with regex, here is one way to do it. You have to take a look at perlre
I'm trying to match anything that appears between the two BR tags
$saved_page = '</a><br>Haunted Woods 1.13 WC Piece<br> <b>'; while ($saved_page =~ m#<br>((?(?!<br>).)+)<br>#g) { push (@items, $1) } print "@items";
Prasad
In reply to Re: html regex problem
by prasadbabu
in thread html regex problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |