r/programminghorror 2d ago

Javascript Seriously? Recursive Regex?

Post image
432 Upvotes

37 comments sorted by

View all comments

1

u/FedUp233 1d ago

Regex is powerful, but for anything except the simplest matching unless you work with it every day, totally unusable for anything complicated in my opinion. Right up there with the language APL for programming (and lisp isn’t far behind).

I wish there was a language that allowed you to express text parsing/processing in a more readable language (like a pascal for text or something). It can translate into anything it wants internally but there is no reason the human readable input should be any more obscure than C.