get all classes from css file using python

Solutions on MaxInterview for get all classes from css file using python by the best coders in the world

showing results for - "get all classes from css file using python"
Matteo
27 Mar 2020
1regex = r"(\.\w+.(.*?)\})" # add the class name after . toget related classes
2classes = re.findall(regex, infile.read())
3
4for entry in classes:
5    outfile.write(entry[0] + '\n')
6