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