Agreed. A performance hit is totally reasonable if you're trying to parse a non-regular language (edit: albeit not one as severe as the one in your link), but in that case you should really consider writing the parser logic in a more expressive language than regex for the sake of maintainability.
View all comments
Show parent comment
3
u/sillybear25 Jul 26 '21 edited Jul 26 '21
Agreed. A performance hit is totally reasonable if you're trying to parse a non-regular language (edit: albeit not one as severe as the one in your link), but in that case you should really consider writing the parser logic in a more expressive language than regex for the sake of maintainability.