Regular expressions are amazing: how to not hate them
Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. Everyone seems to hate regular expressions. I hated them for years. When I needed to get a phone number out of a string, or an attribute of an HTML element, I’d Google it and copy and paste the first StackOverflow results together into my language of choice. In a university level compilers course, I learned how to appreciate regular expressions for the beautiful thing they are....