-
Split every character:
"something".split(/(?!^)/)
-
Never split:
"something".split(/^.$/)
Created
March 11, 2019 23:47
-
-
Save Checksum/0e9351748b2bbb595a35e421bf1e8fb2 to your computer and use it in GitHub Desktop.
Regex Tricks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment