Regex

Chester Wyke July 28, 2024 Updated: May 11, 2025 #Misc

Foreword

I’ve written many regexes over the years that I’d like to be able to find again… Decided it’s probably time to take note of ones I think I’ll use again even if they’re easy to rewrite because, sometimes when you rewrite them you bump into the same edge cases again. Also you do know that “find and replace” in many programs supports regex right… (like vscode and Notepad++).

Tools writing and understanding regex expressions

Cookbook

Find repeated words in a document

\b(\w+)\s+\1\b