Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # Step by step
  2.  
  3. 0. Open an HTML document
  4. 1. CMD/CTRL + F to activate the Search&Replace tool
  5. 2. Switch RegEX mode by clicking the `.*` button
  6. 3. Paste one of the expressions below to select attributes within your HTML document
  7. 4. `Replace` or `Replace all`
  8.  
  9. ## Select `class` attributes
  10. `class=(")([-0-9a-zA-Z:]*[ 0-9a-zA-Z;]*)*(")`
  11.  
  12. ## Select `id` attributes
  13. `id=(")([-0-9a-zA-Z:]*[ 0-9a-zA-Z;]*)*(")`
  14.  
  15. ... you get the gist ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement