Created
April 10, 2026 01:12
-
-
Save nickyonge/0ed94d7d04d7226f87dce59f899eea09 to your computer and use it in GitHub Desktop.
just some handy dandy regexeroonis for vscode find / find+replace
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
| REGEX TO REPLACE ALL hyphen-split-text with camelCaseText (eg CSS to JS) | |
| find: | |
| -([a-z]) | |
| replace: | |
| \u$1 | |
| REGEX TO REPLACE ALL camelCaseText with hyphen-split-text with (eg JS to CSS) | |
| find WITH [Aa] case-sensitivity enabled: | |
| ([a-z0-9])([A-Z]) | |
| replace: | |
| $1-\L$2 | |
| REGEX TO SELECT EVERYTHING STARTING AT A COLON TO END OF LINE | |
| find: | |
| :.*$ | |
| replace with nothing to delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment