---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# sanitize with regex ~notepad++

**URL:** [https://www.linguisticsweb.org/doku.php?id=linguisticsweb:tutorials:basics:regex:regex-notepad](https://www.linguisticsweb.org/doku.php?id=linguisticsweb:tutorials:basics:regex:regex-notepad)

sanitize with regex ~notepad++ chatGPT *at the end/bottom Task Find what Replace with Remove all non-alphanumeric `[^a-zA-Z0-9]` *(leave blank)* Convert multiple spaces to one `\s+` ` ` (single space) Remove HTML tags `<[^>]+>` *(leave blank)* Keep only letters & digits & space `[^a-zA-Z0-9 ]` *(leave blank)* Remove line breaks (flatten text) `\r?
` ` ` (space or empty)


---
**Keywords:** public
