Remove characters
Strip digits, letters, punctuation, spaces, line breaks or accents (é becomes e), or characters you list, e.g. to clean phone numbers or IDs.
Command in the String toolkit · id ooa.string/remove_characters · 9 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to clean. | |
| Digits | Boolean | No | false | Remove 0-9. |
| Letters | Boolean | No | false | Remove letters of any alphabet. |
| Punctuation | Boolean | No | false | Remove punctuation and symbols such as . , - ( ) / # @. |
| Spaces | Boolean | No | false | Remove spaces and tabs. |
| Line breaks | Boolean | No | false | Remove line breaks. |
| Accents (é to e) | Boolean | No | false | Keep the letters but drop their accents: café becomes cafe, Müller becomes Muller. |
| Characters | String | No | Any other characters to remove, typed one after another, e.g. $€£. | |
| Keep only these instead | Boolean | No | false | Keep only the ticked kinds and listed characters, removing everything else (e.g. tick Digits to keep only digits). |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | String | The cleaned text. |