Skip to content

Instantly share code, notes, and snippets.

View kibarke's full-sized avatar

Kirsten Barke kibarke

View GitHub Profile
@kibarke
kibarke / 17-regex-assign
Last active May 21, 2024 19:49
regex-tutorial
# Super Awesome Epic Tutorial for Regex (Dummie Edition)
So, you're probably wondering what Regex is. Great me too! We're going to learn together and we're doing it the dummie edition. The dummie edition meaning for absolute beginners, like no experience what so ever. Or for those who are genuinely curious, welcome!
## Summary
So what is a Regex? Well according to MDN web docs, they are regular expression that match character combinations in strings! Okay lots of fancy words, so basically you're describing patterns with characters. It's like going into Google and using the control/command + f feature and searching for very specific words or characters. For example, `/r[aeiou]+/g`, this example looks for specific words that have the letter r and a vowel.
Regular expressions needs:
* A set of characters that can be used in the language, called the alphabet.