I want to match all href
attributes which contains a string without any url and the string is locally file path so I write this php code:
preg_match_all('/href="[^(http|https):\/\/](.*?)"/is',$tidyHtml,$matches);
This return an array like this:
Array
(
[0] => tatic/css/custom.css
)
But when T see the html source the href
attribute is static/css/custom.css
not static/css/custom.css
.