Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - get class names from html code:
- - REGEX: (?:\G(?!\A)|class=")[^"]*?\K([-a-z\d_]*\([-a-z\d_ ]+?\)|[-a-z\d_]+)
- - use regex on site: https://regex101.com/r/qRx0Ok/1
- - paste html there
- - you'll get results on the right side panel "match information"
- - click icon to export mathhes
- - move exported to array named arr
- - next use:
- arr.reduce((acc, curr) => acc + (curr[0].content + '|'), '')
- .slice(0, -1)
- // .replace(/minion\||primer\||long-primer\||brevier\||pica\||paragon\||is-image\|/g, "")
- - then use crtl + f, paste the result to styles file
Advertisement
Add Comment
Please, Sign In to add comment