Search in HTML for class using regex
Regex to search if html have some element with specific class
/(class=\"(?:.+)?{REPLACE_WITH_CLASS_NAME}(?: .+)?\")/i
Written by Felipe De Boni
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Regex
Authors
Related Tags
#regex
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#