Could be as simple as
Regex.Replace(" 12-34 ", @"\D", String.Empty)
If you don't need decimal or thousand separators, which you most like likely
do need... Then you're on your own :-)
HTH,
Alexander
"Ray Stevens" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I would like to quickly strip out all non-numeric characters from a string
> (including whitespace) into a new string (i.e., remove the edit mask).
> Would
> RegEx be the best way to do this and, if so, what is the syntax?
>
>
|