.Contains() / .Replace()
Searching and replacing.
Syntax
text.Contains("x") // text.Replace(old, new)Description
Contains tells whether a substring exists (True/False). Replace replaces all matches with a new one (returns a new text).
Example
Loading editor…
Expected output
True 2024/01
When to use?
Search box, text sanitization.