|
|
|
|
|
by vain_cain
1593 days ago
|
|
I never said anything about not understanding them.
If it's something simple, like getting a date from a string, a quick glance will tell me if it'll work. If it's more complex, a quick glance or two will give me the general idea and then I can test it against what I think will be edge cases.
If you don't know what kind of a string you'll have to process then you can't really know if any regex is correct, and if you do testing it in most cases is pretty easy and quick. You'd have to test even if you write it yourself.
And in the cases where it's wrong it usually gives me a good starting point. |
|