my $got = q!San Francisco (Manager)!; $got =~ /'(\d{3})'\)">San Francisco \(Manager\)/; my $number = $1; print $number;