News for hackers. Stuff that matters.
Re:Show HN: A JavaScript String replace API that challenges ... by throwaway274739 on Sunday August 28, 2016 @10:06PM (#12379544)
Not a fan. Not to say this isn't perhaps more readable to a layperson than the regex equivalent. However, I dislike these sorts of "syntactic sugar" libraries as a rule due to the cognitive overhead they add to a project; every programmer working on this code now needs to know this API in addition to the regex equivalent, which, let's face it, they would've needed to know anyways.

Nonetheless, I commend you for putting a well documented/examples API out there. Cheers.

Re:Show HN: A JavaScript String replace API that challenges ... by jomamaxx on Monday August 29, 2016 @12:50PM (#12383188)
This is not syntactic sugar - it's just a regular API.

I think it would be useful if there was a very good reason to use it. Otherwise, learn regexing and it shouldn't be so bad.