Regular expressions are one of the classic examples of hate and hate relationships. Yes, itโ€™s not a typo; hate and hate. Do you know anyone who loves or knows how to write moderately complex regex?

Still, undeniably, regular expressions are useful and powerful.

In my recent article, I showed an example of using Regular Expressions to filter #EventStoreDB subscriptions by event types. That helps to more efficiently get notifications about new events.

https://event-driven.io/en/filtering_eventstoredb_subscriptions_by_event_types/

Filtering EventStoreDB subscriptions by event types - Event-Driven.io

Event-Driven by Oskar Dudycz

@oskardudycz I am not ashamed to admit it,I am quite fond of regular expressionsโ€ฆ Few things are more powerful.
@weltraumpirat @oskardudycz I felt so too, until I learned about pure functional parser combinators
@weltraumpirat yes, they're powerful and that's a double-edged sword ๐Ÿ™‚

@weltraumpirat @oskardudycz It also depends a lot on which types of regular expressions we are looking at. There were many extensions to regular expressions, like look-(ahead|behind), or zero length assertions, that raised their power from being a "regular" (Chomsky-1) grammar to a subset of "context-free" (Chomsky-2) grammars.

Regex were my bread & butter, and I still believe learning them will help you a lot when dealing with any kind of string analysis / manipulation.