|
|
|
|
|
by roywiggins
2059 days ago
|
|
This works as long as you're really sure that the language you'll want to parse tomorrow will be regular also. It doesn't take much to accidentally add a new requirement that isn't, and once you've committed to regexps you may be tempted to break out the non-regular extensions that most regexp engines support, and that way lies madness. Starting with a real HTML parser is a good way to future-proof your code for when someone asks you to add just one more thing. |
|
For me this just highlights why it's important that engineers understand at some basic what these different things all mean, and what limitations you may have with your solutions, or even those you may want.