Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Step by step
- 0. Open an HTML document
- 1. CMD/CTRL + F to activate the Search&Replace tool
- 2. Switch RegEX mode by clicking the `.*` button
- 3. Paste one of the expressions below to select attributes within your HTML document
- 4. `Replace` or `Replace all`
- ## Select `class` attributes
- `class=(")([-0-9a-zA-Z:]*[ 0-9a-zA-Z;]*)*(")`
- ## Select `id` attributes
- `id=(")([-0-9a-zA-Z:]*[ 0-9a-zA-Z;]*)*(")`
- ... you get the gist ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement