4 ms·
In general, yes. That's what I always document my regexes well and include write unit tests with all of the positive/negative test cases that I used whilst buil
by radicalbyte 11y ago
In general, yes. That's what I always document my regexes well and include write unit tests with all of the positive/negative test cases that I used whilst building the regex.
That makes them pretty maintainable.
Why go to this effort? Because for they're beautiful and a very powerful tool when used for the right problem. Unfortunately they're widely misused (i.e. email validation).