roystgnr comments on Fifty Shades of Self-Fulfilling Prophecy - Less Wrong

18 Post author: PhilGoetz 24 July 2014 12:17AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (86)

You are viewing a single comment's thread. Show more comments above.

Comment author: roystgnr 24 July 2014 03:31:05PM 8 points [-]

That's the colloquial meaning. To do that with a real regular-expression operation you'd also want terms to match word boundaries; ignoring those to do something foft hof nofty side effects.

Comment author: tut 24 July 2014 03:52:51PM 3 points [-]

Right. It is not originally programmer jargon, but something teachers use when marking essays. It also isn't meant to be applied throughout a text, only on one instance of that word, which would be on the same line as the correction.

Comment author: ThisSpaceAvailable 26 July 2014 05:51:32AM 1 point [-]

Assuming s is short for substitute, it would make more sense for it to be s/new/original. It's kind of annoying how people say "substitute x for y" when they mean "replace x with y".

Comment author: [deleted] 24 July 2014 05:17:03PM *  1 point [-]

This isn't necessary in this particular situation, as the string "as" only occurs once in the former title. (I checked.)

Comment author: Luke_A_Somers 24 July 2014 04:46:18PM 1 point [-]

That's more of a problem with s/foo/bar/g than s/foo/bar/