Also works for cron jobs, shell scripts, SQL queries, HTML layouts and the odd mermaid diagram
RegEx
Welcome to the RegEx community! This is a place where you can learn about and get help with regular expressions
A regular expression is a sequence of characters that specifies a match pattern in text. Theyre usually used for find, or find and replace operations on strings, or for input validation.
Yeah totally! I would encourage everyone to try it with their workflow and see where it can make a difference and where it falls short.
Reason I made an example out of regex is b/c of how much hate it gets :D I definitely see why regex is widely appreciated.
Theres like a whole class of "Stuff you have to relearn every time you have to use it": XPath, JMESPath, cron, ffmpeg, ImageMagick, PostScript etc.. REGEX might be king of those :p
Stuff you have to relearn every time you have to use it
😂 If I could summarize my engineering career, that would be the one liner.
wow, I'm impressed, I can't even understand some of the silly regex's I have. It printed an entire explanation of how the regex worked
It doesn't seem to good at writing complex regex though haha
Explaining regexs is definitely more of a strength than writing!
Complex regexs require more human intervention or better "prompt engineering" for sure.
I like to build up a regex by "show me a regex that does this. Add to the previous regex to also look for this. Modify previous regex to exclude this, etc etc." That way I can walk Chat-GPT by the hand on what I want. dumping a whole prompt on it gives me poor results