Re: [PHP] Re: preg_match_all question
Actually, I meant what is an actual example of a link it will match. like a href=something.htmtext/a for example. Chris Bruce wrote: It matches any link with the exception of https links. On Jul 20, 2005, at 3:36 PM, Ethilien wrote: I don't see anything in this regex that would prevent https from being matched, since you don't specify the pattern of the actual url at all. What is an example of a link that it will match? Chris Bruce wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: preg_match_all question
It matches any link with the exception of https links. On Jul 20, 2005, at 3:36 PM, Ethilien wrote: I don't see anything in this regex that would prevent https from being matched, since you don't specify the pattern of the actual url at all. What is an example of a link that it will match? Chris Bruce wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: preg_match_all question
I don't see anything in this regex that would prevent https from being matched, since you don't specify the pattern of the actual url at all. What is an example of a link that it will match? Chris Bruce wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php