I have a content management system that has links within the content
field in the database and I need to verify if those links are correct.
What I need to have happen is have a php script query the database and
then parse through the content field to find all the <a hreftags to
get the href attribute value and the link text.
Does anyone have a way of doing this or a regex to do this?
Thanks,
Tony
field in the database and I need to verify if those links are correct.
What I need to have happen is have a php script query the database and
then parse through the content field to find all the <a hreftags to
get the href attribute value and the link text.
Does anyone have a way of doing this or a regex to do this?
Thanks,
Tony
Comment