Foxhole Atheist
Tuesday, October 16, 2012
simple c# function for stripping non-numeric
public
static
string
stripNonNumeric(
string
str)
{
Regex
digitsOnly =
new
Regex
(
@"[^\d]"
);
return
digitsOnly.Replace(str,
""
);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment