I need a preg_match_all to return urls that link to other pages. It needs to exclude images, css, js etc.
What would be the best way to match only urls to other pages?
This is what I have
/(\s|\b)(http:\/\/|https:\/\/|www\.)[\.a-z0-9]+\.[a-z0-9\/\?=]+(\s|\b)/
I need it to only match to urls within the href of a anchor tag. It shouldnt match .css, .jpg, .png etc
I have no idea how to modify it though