Skip to content

Instantly share code, notes, and snippets.

@PhilippeVay
Created October 23, 2017 16:48
Show Gist options
  • Save PhilippeVay/1b1d99dcad8774b57d998e253fcc0023 to your computer and use it in GitHub Desktop.
Save PhilippeVay/1b1d99dcad8774b57d998e253fcc0023 to your computer and use it in GitHub Desktop.
Extraire des noms de classe depuis du code HTML vers des sélecteurs CSS

(version simpl-ist-e)

Dans un éditeur de texte, chercher (en modes regexp et selection) :

\s*<.*? class=\"(.*?)".*

Remplacer par :

.$1 {}\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment