You copied the regex incorrectly.
Producesperl -e '$n = "Price 15.40"; $n =~s/[^\d.]//g; print "$n\n";'
15.40
In reply to Re^3: extracting number from string
by puudeli
in thread extracting number from string
by samuelalfred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |