Qurak

StringReplace

可用

Applies one or more replacement rules to a string.

StringReplace["string", s -> sp]
StringReplace["string", {s1 -> sp1, s2 -> sp2, …}]
StringReplace["string", srules, n]
StringReplace[{s1, s2, …}, srules]
StringReplace[srules]
StringReplace["Hello world", "world" -> "moon"] → Hello moonStringReplace["abc", RegularExpression["(b)"] :> "<" <> "$1" <> ">"] → a<b>c

使用於

主題

相關

全部 6300 個函式 · 從 MCP 用戶端使用這個