Session
How Regex Works: The Secret Sauce Behind Pattern Matching
Ever wondered how regular expressions pull off their magic tricks? Let's demystify the regex engine together! In this fun talk, we'll peek under the hood and see how it all works, using something called Non-deterministic Finite Automaton (NFA), or as some like to call it, state machines. Don't worry, we'll keep things simple and easy to understand.
The regex engine is like a super-powered detective that's really good at finding specific patterns in text. But did you know that behind the scenes, it's using something we all study in universities, called Non-deterministic Finite Automaton (NFA)? It's a bit like a map that helps the regex engine understand and match patterns efficiently.
Imagine trying to solve a really big puzzle. NFA helps by breaking down complex regex patterns into smaller pieces, or states. Then, all we need to do is follow the map, moving from one state to another until we find our match. It's like having a guide to lead us through the maze of text, making pattern matching a breeze.
During our adventure, we'll take a closer look at how the regex engine is put together. We'll explore concepts like backtracking (when it needs to go back and try a different route), greedy quantifiers (how it decides how much to match), and character classes (the different types of characters it's looking for). And remember, we'll explain everything in plain language, so you won't get lost in technical jargon.
But we won't stop at just talking about theory. We're going to dive deeper and take you through the process of building a simple regex matcher right in the presentation. By walking through this hands-on exercise, you'll get a firsthand look at how the regex engine works in action. By the end of our journey, you'll have not only a better understanding of regex but also the practical skills and confidence to use it effectively in your own projects.
Whether you're a beginner or a seasoned coder, this talk will help you unlock the secrets of regex and level up your pattern matching skills. So, join us for a fun and enlightening exploration into the world of regex!

Andrii Raikov
Principal Software Engineer at Delivery Hero SE
Berlin, Germany
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top