There is a requirement to extract all ID names and CLASS names from the css file into two lists
Can this function be accurately implemented using regular expressions?
classValues = re.findall(r'\.([\w_-]+)',content)
idValues = re.findall(r'#([\w_-]+)',content)
But there will be many more values that do not belong to ID and class, such as the following situation:
background-color: #fff;
-webkit-box-shadow: 0 0 2px 0 rgba(31, 31, 31, 0.07);