Skip to content

Instantly share code, notes, and snippets.

@IOIO72
Created May 10, 2019 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IOIO72/e95cf200958d611e959935ed62dfa933 to your computer and use it in GitHub Desktop.
Save IOIO72/e95cf200958d611e959935ed62dfa933 to your computer and use it in GitHub Desktop.
Removes everything prefixed until the first alphabetical character
const removeSymbolPrefix = str => /^([^a-z]*)(.*)$/gi.exec(str)[2] || str;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment