⚠️ 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 Class Basics
Character classes try to match an individual character within square brackets: [abc] matches and a, b or c

Case Sensitivity
Character classes are case sensitive: [ABC] matches A, B or C

Ranges
Character classes can do ranges of characters [A-Za-z0-9]

Negation
Also, you can negate a character class as well (matches everything not specified) [AEIOUY]

Matching a Dash
Note: To match a – add it to the end of the capture group [A-Z-]

Matching a Dash Alternative
You can also do it by placing a backslash in front of the character. [-A-Z]. This is called ‘escaping’. Later you will see some characters have special meaning that can be escaped to it’s literal meaning and some other characters are given meaning by the backslash. It’s all wacky regex fun!

mOAR