in reply to Re^2: extracting number from string
in thread extracting number from string
You copied the regex incorrectly.
Producesperl -e '$n = "Price 15.40"; $n =~s/[^\d.]//g; print "$n\n";'
15.40
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: extracting number from string
by samuelalfred (Sexton) on Mar 05, 2009 at 12:54 UTC | |
by johngg (Canon) on Mar 05, 2009 at 14:03 UTC | |
by AnomalousMonk (Archbishop) on Mar 05, 2009 at 18:29 UTC |