Remove()
Remove every occurrence of pcSubStr from the string (mutating). For a copy, use Removed.
also: delete erase take out strip drop
The forms of this verb
Remove · Removed
Basic examples (2)
? Q("rixxnxg").RemoveQ("x").UppercaseQ().Spacified()R I N G
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 03-read-the-name-as-a-sentence.en.md(opens in a new tab)
# removing isLowercase(@char) leaves the uppercase letters
? Q("SOooooFTAaaannnNZA").RemoveWQ('isLowercase(@char)').Content()SOFTANZA
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 504_removew.ring(opens in a new tab)
Scope (8)
o1 = new stzString("^^♥^^")
o1.RemoveXT( "♥", :AtPosition = 3)
# carets only
? o1.Content()^^^^
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 895_content.ring(opens in a new tab)
o1 = new stzString("/♥♥♥\__/♥\/♥♥\__/♥\__")
o1.RemoveXT([], "♥")
# same result
? o1.Content()/\__/\/\__/\__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 893_content.ring(opens in a new tab)
o1 = new stzString("__♥__♥__♥)__")
o1.RemoveXT( ")", :AfterLast = "♥" )
# cleaned
? o1.Content()__♥__♥__♥__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 876_content.ring(opens in a new tab)
o1 = new stzString("__♥)__♥__♥__")
o1.RemoveXT( ")", :AfterFirst = "♥" )
# cleaned
? o1.Content()__♥__♥__♥__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 875_content.ring(opens in a new tab)
o1 = new stzString("__♥__♥__(♥__")
o1.RemoveXT( "(", :BeforeLast = "♥" )
# cleaned
? o1.Content()__♥__♥__♥__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 881_content.ring(opens in a new tab)
o1 = new stzString("__(♥__♥__♥__")
o1.RemoveXT( "(", :BeforeFirst = "♥" )
# cleaned
? o1.Content()__♥__♥__♥__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 880_content.ring(opens in a new tab)
o1 = new stzString("/♥♥♥\__/♥\/♥♥\__/♥\__")
o1.RemoveXT("♥", [])
# every heart gone
? o1.Content()/\__/\/\__/\__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 892_content.ring(opens in a new tab)
o1 = new stzString("__♥__♥)__♥__")
o1.RemoveXT( ")", :AfterNth = [2, "♥"] )
# cleaned
? o1.Content()__♥__♥__♥__
run on 2026-10-02 04:24 inside the library at commit 0e72e2e2c; taken from 874_content.ring(opens in a new tab)
and 16 more in the tests
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.
See also
- The class stzString
- The area's reference: String
- The other methods in these examples: stzString.Replace

