Text & Writing

Keep Lines Matching Regex

Keep only lines that match a regular expression.

Text & Writing

Keep Lines Matching Regex

Local only
Everything stays in your browser

Your text is processed on your device — nothing is uploaded to a server.

How it works

Each line is tested separately with JavaScript regular expressions. Invalid patterns show the browser's error message.

Good to know

Frequently asked questions

How do I use it?

Enter your text, adjust the options and press “Keep matching lines”. Check the result, then copy or download it.

How does it work?

Each line is tested separately with JavaScript regular expressions. Invalid patterns show the browser's error message.

Is my data uploaded?

No. Everything is processed in your browser and nothing is sent to a server. No account is needed.