-1
PSA: Use Chat-GPT for writing and interpreting regex patterns for your convenience.
(programming.dev)
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.
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