Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created May 25, 2015 22:00
Show Gist options
  • Save unitycoder/ddb69aa6199691024a2e to your computer and use it in GitHub Desktop.
Save unitycoder/ddb69aa6199691024a2e to your computer and use it in GitHub Desktop.
Regexp replace all non-numeric characters from string
rawLine = Regex.Replace(rawLine, "[^0-9 ]", ""); // remove non-numeric chars, except space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment