Skip to content

Instantly share code, notes, and snippets.

@AndrewSavetchuk
Last active March 11, 2024 23:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AndrewSavetchuk/e88e07fc0225be0b0ef4866f491abf7c to your computer and use it in GitHub Desktop.
Regex Snippets

Word Search

(hello|hi)world

This regular expression will match all words that start with "hello" or "hi".

"helloworld"
"hiworld"

It can be useful when searching variables in the code.

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