in reply to Pattern matching with variable number

$s =~ /<input name="uid" type="checkbox" value="(\d\d\d\d\d\d\d\d)">/ && print "match found: $1\n";

Probably you need to process optional spaces and carriage returns as well..

Update: \d{8} is better :) Thanks CombatSquirrel!