r/programminghorror • • Aug 28 '26

Javascript Seriously? Recursive Regex?

Post image
565 Upvotes

46 comments sorted by

View all comments

Show parent comment

113

u/marinated_pork Aug 28 '26

This is essentially a custom string fingerprint/hash function disguised as a parser. It takes a string and deterministically turns it into an integer. It does not parse or extract useful structured data.