in reply to capture data - html
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)}
|
|---|