---
type: link
tags: [link]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T11:08:45.327474+00:00
---# 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?\n` ` ` (space or empty)


---
**Keywords:** link
