3 ms·
On the contrary regexes were invented because you shouldn't have to write 500 lines of code for that which can be done in two lines. If we didn't have regexes
by kamaal 7y ago
On the contrary regexes were invented because you shouldn't have to write 500 lines of code for that which can be done in two lines.
If we didn't have regexes we would have 100s of if/else's scattered all over program logic. That would be more hard to handle than the regex itself.