Answers for "get all classes from css file using python"

1

get all classes from css file using python

regex = r"(\.\w+.(.*?)\})" # add the class name after . toget related classes
classes = re.findall(regex, infile.read())

for entry in classes:
    outfile.write(entry[0] + '\n')
Posted by: Guest on August-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language