You're looking at Less Wrong's discussion board. This includes all posts, including those that haven't been promoted to the front page yet. For more information, see About Less Wrong.

fortyeridania comments on Fifty Shades of Self-Fulfilling Prophecy - Less Wrong Discussion

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: fortyeridania 24 July 2014 07:20:29AM 2 points [-]

What does "s/as/of/" mean?

Comment author: tut 24 July 2014 07:25:50AM 3 points [-]

Replace the word 'as' with the word 'of'.

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/

Comment author: fortyeridania 24 July 2014 04:13:54PM 1 point [-]

Thanks.