Reply to Re: Extract any URL from any string?

Your name:

Reply:


Posted by Daz on 02/10/07 22:34

On Feb 10, 8:41 pm, "deko" <d...@nospam.com> wrote:
> geturl.php
>
> Too much code to paste here, but have a look athttp://www.liarsscourge.com/
>
> So far, I have not found a string that can break this...
>
> Any built-in functions or suggestions for improvement?
>
> Thanks in advance.


I don't want to sound negative here, but what exactly is the point?
The reason I ask, is because I see no reason why you can't extract it
with a single regex expression, and then you could use another one to
validate it. It's simple enough to validate, the question is how valid
do you want it to be. Should you need to specify each TLD, or do you
just need to match a pattern. In either case, 2 or 3 regex expressions
max should be able to do what you are after. With a little extra
crafting, you should be able to extract multiple URLs in one go.

[Back to original 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

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