Answer the question
In order to leave comments, you need to log in
How to parse a class in regular expressions?
Hello everyone, how to parse a class in regular expressions if it is not in all places?
Here is the html example
Here is the written code
https://regex101.com/r/ea70gt/1
The code works fine when I remove the class=\"(.+?)\", however it does not parse the class, and when I add the class it does not work because for the fact that not all places have a class.
How to solve this issue?
Answer the question
In order to leave comments, you need to log in
if I start redoing it again, a lot of time will pass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question