in reply to Re^5: extracting number from string
in thread extracting number from string
And further, the regex metacharacter ^ at the beginning of a character set complements the characters specified in the set, so that [^\d.,] means "any character except a decimal digit, full-stop or comma".