Escape for regex
Put a backslash before every character that has a meaning in regular expressions, so the text is matched exactly, e.g. 1+1=2? to 1+1=2?.
Command in the String toolkit · id ooa.string/escape_regex · 1 input (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to escape. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The text, safe to use inside a regular expression. |