I'll admit it. When I first came across regular expressions, they seemed a bit intimidating. But, after spending about three or four minutes reading about them I felt a lot more comfortable. Apparently, Scott Elkin's colleague didn't feel like investing those three or four minutes learning regular expressions. Or looping through the individual characters on the string. Well ... at least this way it's all on one line.

Scott also mentions this is only part of the replacement -- his colleague uses this technique to replace every symbol. Heh.

Well, you know how to send in your WTF-Submissions. Google has been generous to me, so I just keep getting GMail invites. So, when I post your story, I'll send you an invite if you'd like.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!