Hi, If you want to store the id value to a memory variable, you can have (assuming that the content of href is stored to $str)
$str =~ /ID=([^\&]+)\&/g
With the above regex, $1 will contain the ID value. If you want to add the ID to a array, use
if ($str =~ /ID=([^\&]+)\&/g) {push (@idlist, $1)}
In reply to Re: capture data - html
by rsriram
in thread capture data - html
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |