Regular Expressions 101 - https://regex101.com/
NOTE: The ^ caret symbol is used to exclude a charset when enclosed in [square brackets], but when it's used without square brackets it specifies the beginning of a word or a line.
Anything enclosed between () are called groups. They capture the text matched by the regex inside them into a numbered group that can be reused with a numbered backreference.
ex: during the (day|night) will match both of these sentences: 'during the day' and 'during the night'.
ex: (no){5} will match the sentence 'nonononono'.