s/
s/ verb: replace the following string with the one that appears after it.
Verb
s/
Origin of s/
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.
Questions about s/
- What does s/ mean?
- S/ means replace the following string with the one that appears after it.
- What part of speech is s/?
- S/ is a verb.
Words near s/ in the dictionary
Source and license
Adapted from Wiktionary: s/ (page history and authors). Text available under the Creative Commons Attribution-ShareAlike 4.0 license. Word.ws reformatted the entry and added links. Wiktionary data of 2026-09-02.
Last updated:
Cite this entry: “s/.” Word.ws, https://word.ws/s%2F. Based on Wiktionary, CC BY-SA 4.0.
