preg_match_all question
| From: | Chris Bruce | Date: | Tue, 19 Jul 2005 15:22:06 +0000 |
| Subject: | preg_match_all question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218961@lists.php.net to get a copy of this message | ||
Hello,
I am using the following to do link replacing:
preg_match_all("/<\s*a\s+[^>]*href\s*=\s*[\"']?([^\"' >]+)[\"'
]/isU",$file[$x],$matches);It works great for all but 'https' links. I am not that versed in regular expressions. Would anyone know what I need to put in there so that it will match on https links? Thanks, Chris