News for hackers. Stuff that matters.
Re:Coconut: Simple, elegant, Pythonic functional programming by dekhn on Thursday November 04, 2021 @10:02AM (#29107309)
regular expressions have structure. That's why you can concatenate two regular expressions a b to ab and you have a resulting expression that will match a string if a matches its first part and b matches the rest

Mainly what you're showing is that regular expresisons are awkward for matching certain types of syntax. You could have split each of the unique components in your expression into small parts and it would be much more readable.

Re:Coconut: Simple, elegant, Pythonic functional programming by jimsimmons on Thursday November 04, 2021 @10:40AM (#29107783)
Completely agree. My point is that having things broken down and built up gradually (aka procedural) is a better approach than one shot declarations.