I am trying to write a regex to get the numbers from strings like these ones:
javascript:ShowPage(\'6009\',null,null,null,null,null,null,null) javascript:Bloc
Assuming:
Try this:
/(\d+)/
then $1 (Perl) or $matches[1] (PHP) or whatever your poison of choice is, should contain the digits.
$1
$matches[1]