4 ms·
Regular expressions were very invented to avoid this. Because this works fine only as long your regular expressions are small and few. Once that fact changes y
by kamaal 13y ago
Regular expressions were very invented to avoid this. Because this works fine only as long your regular expressions are small and few.
Once that fact changes you will find yourself writing and staring at walls of text.
You will do this enough number of times, then only hope that you have a more succinct and powerful way of expressing such a idiom, you will do all that only to realize using regular expressions are the only way to solving a range problems which it was designed to solve.
The easiest analogy I can give you math. Prior to manipulation of symbols, math was pretty much text. The whole of math looked paragraphs of puzzles and word play. Worked fine when you want to do small things like postulates, axioms and a few things derived from that. To move a higher level of abstraction and interplay of concepts we had to get into symbols.
This is something similar.