Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
Last active June 8, 2022 15:04
Show Gist options
  • Save andrewpmiller/4dc1ea15b774b1ff281f4522f145b20f to your computer and use it in GitHub Desktop.
Save andrewpmiller/4dc1ea15b774b1ff281f4522f145b20f to your computer and use it in GitHub Desktop.
VS Code Regexes

^([^\s]+)
Selects the first non-whitespace characters up to the first space

Examples:
Lorem ipsum dolor sit amet
Loremipsumdolor sitametconsetetur

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