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.
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.
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”.
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.
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.
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”.
This isn’t necessary in this particular situation, as the string “as” only occurs once in the former title. (I checked.)
That’s more of a problem with s/foo/bar/g than s/foo/bar/