Regex
Chester Wyke July 28, 2024 Updated: April 15, 2025 #misc
misc (Series)
Things to Remember
Cannon MG3600
PDF Garbled (Fix)
Replit
Anydesk
OBS
Copy Source
CSS Display Reference
CLASP
Firefox Extensions
Discord
Documentation Update
Google Storage
Markdown / HTML Guide
Tera Guide
Zola
PHP
Links
YouTube Reference Videos
Remote Desktop Protocol (RDP)
Wireshark
Chromecast
VNC Ubuntu
VeraCrypt
Today I Learned (TIL)
Controllers
phpMyAdmin
Quotes
Colors
Regex
Resume writing
Projects and Contributions
Presentation Animation Removal
QR Codes
Leetcode
favicon
Things to Remember
Cannon MG3600
PDF Garbled (Fix)
Replit
Anydesk
OBS
Copy Source
CSS Display Reference
CLASP
Firefox Extensions
Discord
Documentation Update
Google Storage
Markdown / HTML Guide
Tera Guide
Zola
PHP
Links
YouTube Reference Videos
Remote Desktop Protocol (RDP)
Wireshark
Chromecast
VNC Ubuntu
VeraCrypt
Today I Learned (TIL)
Controllers
phpMyAdmin
Quotes
Colors
Regex
Resume writing
Projects and Contributions
Presentation Animation Removal
QR Codes
Leetcode
favicon
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.
My favorite tool when writing regex is https://regex101.com/. It makes it very easy to test and debug regex expressions and has a quick reference with all the groups and quantifiers and things I don’t commit to memory. PyCharm also has regex expression tester which is useful but I still get more value out of https://regex101.com as that works even when I’m not using PyCharm. Also you do know find and replace in many programs supports regex right… (like vscode and Notepad++).
Cookbook
Find repeated words in a document
\b(\w+)\s+\1\b