Skip to content

Instantly share code, notes, and snippets.

@nickyonge
Created April 10, 2026 01:12
Show Gist options
  • Select an option

  • Save nickyonge/0ed94d7d04d7226f87dce59f899eea09 to your computer and use it in GitHub Desktop.

Select an option

Save nickyonge/0ed94d7d04d7226f87dce59f899eea09 to your computer and use it in GitHub Desktop.
just some handy dandy regexeroonis for vscode find / find+replace
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