> I need a regular expression which will eliminate all characters except
> numbers, period, and +, -, *, or /
>
> I am currently using:
> $new_value = ereg_replace('[^0-9\.-/+*]', "", $value);
>
> However, this seems to eliminate - as well. Any help would be appreciated.
Try listing the - as th
Hi,
I need a regular expression which will eliminate all characters except
numbers, period, and +, -, *, or /
I am currently using:
$new_value = ereg_replace('[^0-9\.-/+*]', "", $value);
However, this seems to eliminate - as well. Any help would be appreciated.
Also, any good references for re
2 matches
Mail list logo