Hi, I'm trying to find URLs in a file, but I need to include the target="blank" to the pattern matching.
I tried this:
preg_match_all('/<a\s+.*?href=[\"\']?([^\"\' >]*)[\"\'?[^>]*?target=\"_blank\">(.*?)<\/a>/i', $s,$matches,PREG_SET_ORDER))
But, that doesn't appear to work. Help?