I am trying to search the following text if it contains the specific link:
this my test text and it ontains the link to http://example.com/abc/files and http://example.com/def/files
I want that if I search for the link http://example.com/*/files
, it should show me the text.
I tried this code but no result:
if (preg_match("/http://example.com/i", $content, $matches, PREG_OFFSET_CAPTURE))
{
// Code Here
}