in reply to capture data - html
Assuming you already have the URL that you want, its a simple regex. This regex makes a few assumptions, primarily that the URL will always look like this.
You could also push them onto an array and store all the values that you come accross:print "UID: $1\n" if ($url =~ /^http:.*\/ID=(.*)&MyToken=.*$/);
push (@uid_list, $1) if ($url =~ /^http:.*\/ID=(.*)&MyToken=.*$/);
|
|---|