Just like programming tricks in any language supported by copilot:
a. Code, once provided, can be broken down and understood at a far easier level than is required for composition;
b. Worst case, try several test cases to both increase comprehension and reduce the chance of 'gottcha's.
Shouldn't be too hard to stick with option 'a' as clear best practice, looking up any operators or syntax that aren't immediately obvious, the advantage being that the AI can use obscure tricks that you aren't initially aware of but you still have the opportunity to review and understand the regex, becoming better over time. It's theoretically auto-generated, but practically computer-assisted.
a. Code, once provided, can be broken down and understood at a far easier level than is required for composition;
b. Worst case, try several test cases to both increase comprehension and reduce the chance of 'gottcha's.
Shouldn't be too hard to stick with option 'a' as clear best practice, looking up any operators or syntax that aren't immediately obvious, the advantage being that the AI can use obscure tricks that you aren't initially aware of but you still have the opportunity to review and understand the regex, becoming better over time. It's theoretically auto-generated, but practically computer-assisted.