Tag: regex

The power of C# regex

Let’s say you have a big chunk of text and you want to parse it to get some info. Or perhaps you even want to replace some pattern with another. Depending on how complex your extraction process is, the whole “split, search and recombine” workflow can be tedious and unoptimised. At ...

How To Match Multiple Conditions in Regex

In a previous post, I wrote about how to make YouTube links show up as thumbnails in your Medium post. In order to do it, you need to make use of some regular expressions to match and replace certain patterns in the provided URLs. In the post, I included a bonus section where one m...