yields the string obtained by deleting from string all occurrences of anything matching the string pattern patt.
Details and Options
- The string expression patt can contain any of the objects specified in the notes for StringExpression.
- Setting the option IgnoreCase->True makes StringDelete treat lowercase and uppercase letters as equivalent.
- StringDelete[patt][expr] is equivalent to StringDelete[expr,patt].
- StringDelete[BioSequence["type","seq"],patt] removes cases of patt in the string "seq" yielding a BioSequence result. In this case, degenerate letters in patt are interpreted as wildcard patterns based on the type of bio sequence. Use Verbatim["patt"] to match degenerate letters literally.
- If the bio sequence operated upon by StringDelete is circular, wraparound matches are possible.
Examplesopen allclose all
Basic Examples (4)
Use the operator form of StringDelete:
Wolfram Research (2015), StringDelete, Wolfram Language function, https://reference.wolfram.com/language/ref/StringDelete.html (updated 2020).
Wolfram Language. 2015. "StringDelete." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/StringDelete.html.
Wolfram Language. (2015). StringDelete. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StringDelete.html