Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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] + '
')
 
PREVIOUS NEXT
Tagged: #classes #css #file #python
ADD COMMENT
Topic
Name
6+4 =