/ expression / flags, i.e/[A-Z]+/gbasic format/ hello\?\*\\/escape special characters with backslashes()group with parentheses|logical OR
\wword\ddigit\swhitespace (tabs, line breaks)\WNOT word\DNOT digit\SNOT whitespace\ttabs,\nline breaks.any character (except newline)
[xyz]match any x, y, z[J-Z]match any capital letters between J & Z.[^xyz]NOT x, y, z
bob|alicematch bob or alicez?zero or one occurrencesz*zero or multiple occurrencesz+one or multiple occurrencesz{n}n occurrencesz{min,max}min/max occurrences
hello worldexact match^hellostart of the stringsworld$end of the string
If you were interested in practicing you can use this wonderful website:
https://regexr.com/