There are many questions like this question but I can not find exact answer. And I am unfamiliar Regular Expresion topic.
PHP7 : I want to check if $str contains a html code and its href
refer to the url : "website.fr"
like '<a href="www.website.fr/123/">*****</a>'
i used the pattern <\b[a>]\S*\<\/a>
but is not working.
Any help please.