Reply to getting REGEXP query

Your name:

Reply:


Posted by Anze on 09/29/05 00:41

Hi all!

I have a MySQL database that contains URLs and would like to fetch different
domain names from the field. Is there some sort of regular expression match
function? I need something like:

SELECT REGEXP('^(http://)?([^/])+/.*$', t.url, '$1') FROM my_table t;

That is, I need some sort of string function that would return a part of the
string based on a regular expression match.

Am I missing something? I looked around but couldn't find it. It looks very
basic stuff to me, there must be something like that out there?

Any advice would be welcome.

Kind regards,

Anze

[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

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