Cheatsheet Pages / Regex Cheatsheet

A quick regex for HTML tags — and when not to use it

A rough scrape needs to spot tags — nothing more.

Patterns use the syntax shared by PCRE / Python / JavaScript; engine differences are flagged in the cheatsheet where they matter. Test any pattern at regex101.com — and pick the matching engine.

<[^>]+>
# matches: <p>, </div>, <a href="x">
Regex Cheatsheet one-page card — patterns that actually work
The full one-page card — Regex Cheatsheet. Get the complete cheatsheet on GitHub