Skip to content

Instantly share code, notes, and snippets.

@rossnz
Created January 20, 2014 13:28
Show Gist options
  • Save rossnz/8519825 to your computer and use it in GitHub Desktop.
Save rossnz/8519825 to your computer and use it in GitHub Desktop.
String remove - only keep numbers
PS> '1 is a number, so is 2. I quite like 3 and 4 too' -replace '[ ,.a-zA-Z]'
1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment