Created
January 20, 2014 13:28
-
-
Save rossnz/8519825 to your computer and use it in GitHub Desktop.
String remove - only keep numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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