.contains() / .replace() / .split()
Searching, replacing, splitting.
Syntax
s.contains("x") s.replace("a","b") s.split(",")Description
contains checks if it exists (true/false), replace modifies it, split divides it into a list.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
true 2024/01
When to use?
Search box, text sanitization, CSV.