The Complete Guide to Regular Expressions (Regex) - CoderPad
For example, the following regex: Hello|Goodbye Matches both the string “Hello” and “Goodbye”. Meanwhile: Hey? Will track “y” zero to one time, so will match up with “He” and “Hey”. Alternatively: Hello {1,3} Will match “Hello”, “Helloo”, “Hellooo”, but not “Helloooo”, as it is looking for the letter “o” between 1 and 3 times.