Created
July 26, 2012 15:40
-
-
Save adamrobbie/3182785 to your computer and use it in GitHub Desktop.
Reg ex expression to parse text removing all non-alphabet characters
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
message = message.gsub(/[^0-9a-z]/i, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment