Last active
March 4, 2021 10:18
-
-
Save DesignFront/2ecb2988fa1a38734b516b7b2f92893c to your computer and use it in GitHub Desktop.
Split string by capital/numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value.replace(/(?!^)([A-Z]|\d+)/g, " $1"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment