Text processing utilities - pattern matching and search operations.
All functions are backed by the Rust runtime.
Returns true if s contains the substring pattern.
Replaces all occurrences of from with to in s.
load std.text
let s = "The quick brown fox"
if text.contains(s, "fox"):
let r = text.replace_all(s, "fox", "dog")