Reply to php extract variable from a string using regexp

Your name:

Reply:


Posted by Ciaran on 07/17/07 20:15

Hi what's the best way to extract a var from a string based on a
regexp? I can't seem to find the right function.

I want to get the domain extension from any url.
examples:
http://www.domain.com/test.php $extension="com";
http://www.domain.co.uk/test.php $extension="co.uk";

Thanks
Ciarán

[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

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