r/programming • • Apr 29 '14

Programming Sucks

http://stilldrinking.org/programming-sucks
3.9k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

1

u/mszegedy May 20 '14

It's part of the universal language for regexes. Yes, it's part of sed syntax, but it's not for sed syntax, if you see what I mean. Lots of other things use it, too. ("Universal language for regexes" is, unsurprisingly but nevertheless sadly, kind of a misnomer. Regex language varies a little from implementation to implementation; for example, in Vim it's case-insensitive, and a lot of characters, like +es and ()es, have to be escaped using a backslash to get their non-literal meaning, unlike most other places. But s///g and s/// are both truly universal afaik.)