Skip to content

Instantly share code, notes, and snippets.

@mghdotdev
Last active July 27, 2020 23:59
Show Gist options
  • Save mghdotdev/69750c6734379e15dd5704e694db53d6 to your computer and use it in GitHub Desktop.
Save mghdotdev/69750c6734379e15dd5704e694db53d6 to your computer and use it in GitHub Desktop.
REGEX TO FIX CRAPPY CHARS

REGEX TO FIX CRAPPY CHARS

  1. Download a .CSV file from Data Management.
  2. Open it in Sublime (or other text editor with a RegEx search).
  3. Use the RegEx to search for "non-standard" characters.
  4. Replace them with their HTML entity equivalent. (http://www.amp-what.com/)
[^0-9a-zA-Z\-\,\s\"\.\/\_\%\'\!\&\:\(\)\?\<\>\=\;\*\#\—\®\™\$\•\@\]\[\}\{\+]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment