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=.*$/);
In reply to Re: capture data - html
by madbombX
in thread capture data - html
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |