⚠️ NOTE: If you have any questions regarding the content presented below, feel free to post them here. I will be happy to help anyway I can! Regex is a big passion of mine and I look forward to hearing from you. 😁
Character classes have some shortcut equivalents. These are called metacharacters. Here are some popular ones:
. ~> match any character but not a new line
\t ~> tab!
\n ~> line break
\s ~> any white space (Tab, line break)
\ ~> white space
You’ve already seen some characters like
<strong>[ ]</strong> that have special meaning. To use it’s literal equivalent you need to ‘escape’ that character. To do that you put a slash
\ in front.
Example: literal square brackets =