Regular expressions are sequences of characters that define a search pattern, mainly for use in pattern matching with strings, not as some people would have you believe, devil code written by witchcraft practitioners. If you don’t know basic regex, you’re missing out. Get some knowledge in you!
If you have ever had to comb through a log or unformatted user input, you know why regex is an important skill. You can try splitting and replacing and joining and trimming strings to try to get stuff out of them, but more often than not, a nice clean regular expression is the tool that’s best for the job. Folks need to quit avoiding regex like it’s an alien that’s here to eat your brain, and embrace the unmatched power that it brings to string manipulation.
Thomas Rayner is a Senior Security Service Engineer at Microsoft with many years of experience in IT. He is a master technologist, specializing in DevOps, systems and process automation, public, private and hybrid cloud, security and .NET coding. Thomas is a former 4x Microsoft MVP, Honorary Scripting Guy, an international speaker, best-selling author, and instructor covering a vast array of IT topics.