Skip to content

Instantly share code, notes, and snippets.

@adamrobbie
Created July 26, 2012 15:40
Show Gist options
  • Save adamrobbie/3182785 to your computer and use it in GitHub Desktop.
Save adamrobbie/3182785 to your computer and use it in GitHub Desktop.
Reg ex expression to parse text removing all non-alphabet 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