You are here: Re: preg_match_all question « PHP « IT news, forums, messages
Re: preg_match_all question

Posted by Ethilien on 07/20/05 22:36

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
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация