Skip to content

Instantly share code, notes, and snippets.

@0xGGGGG
Created November 27, 2011 19:19
Show Gist options
  • Save 0xGGGGG/1398013 to your computer and use it in GitHub Desktop.
Save 0xGGGGG/1398013 to your computer and use it in GitHub Desktop.
turkish visible character set
# if any encoding stuff doesnt save your ass, and you have to figure out
# you can regexp it out!
# TODO: will be improved
"any bad ass text".gsub(/[^A-Za-z 0-9 üÜıİöÖşŞğĞçÇ\.,\?'""!@#\$%\^&\*\(\)-_=\+;:<>\/\\\|\}\{\[\]`~]*/i, '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment