s/

verb

Replace the following string with the one that appears after it.

“I hate you, you idiot! Erm, s/hate/love/ and s/idiot/lovable fellow/.”

Meanings

verb
  1. imperative onlyinformal or even humorousReplace the following string with the one that appears after it.

    I hate you, you idiot! Erm, s/hate/love/ and s/idiot/lovable fellow/.

Origin

This comes from the command s (substitute), originally in ed and also found in Perl, to replace one string with another. Although the command does not require slashes (other punctuation can be used as delimiters) in this informal use (i.e., outside of scripting) slashes are virtually universally used. In the original command, a trailing g means that the change in strings should be effected every time the first string appears (not just the first time it appears); this g is often used in this informal verb also, as described in the usage note below.

Full word history & related roots →
Cite this entry
APA

s/. (n.d.). In WatkinsX Dictionary. Retrieved November 3, 2026, from https://dictionary.watkinsx.com/word/s%2F

MLA

“s/.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/s%2F. Accessed November 3, 2026.

Chicago

WatkinsX Dictionary, s.v. “s/,” accessed November 3, 2026, https://dictionary.watkinsx.com/word/s%2F.

Source: s/ on Wiktionary, CC BY-SA 4.0.