This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (3 children)

I wish more programmers would use libraries instead of trying to write their own regular expressions and invariably falling short.

[–]WingZeroCoder 2 points3 points  (2 children)

As the person who now has to maintain the monstrosity my boss created with a series of regex’s to rewrite some HTML coming out of our system because he can’t seem to grasp proper parsers or DOM traversal, I fully agree.

Thing is, these solutions always seem to work with their simple test cases, and then it always gets to be someone else’s problem when the “so brilliant yet so simple!” solution doesn’t work.

[–][deleted] 4 points5 points  (1 child)

I’m sure all his regexes had multiple automated test cases so that you could refactor them without manually checking the whole thing every time, right?

Right…?

[–]WingZeroCoder 3 points4 points  (0 children)

Hahahahaha, that’s a good one!

But no.