Skip to content

Instantly share code, notes, and snippets.

@Checksum
Created March 11, 2019 23:47
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 Checksum/0e9351748b2bbb595a35e421bf1e8fb2 to your computer and use it in GitHub Desktop.
Save Checksum/0e9351748b2bbb595a35e421bf1e8fb2 to your computer and use it in GitHub Desktop.
Regex Tricks
  • Split every character: "something".split(/(?!^)/)

  • Never split: "something".split(/^.$/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment