I’m looking for a library, class, function, etc that I can feed it a string of html and find things like src or href. I know tht I can find a regex for specific cases, but i’m looking for a library that makes it easy to get stuff without figuring out a new regex each time.
Share
SimpleHTMLDOM is your friend in this scenario. REGEX is never the best way (for HTML tags).
Example: