You are here: Re: getting REGEXP query « PHP SQL « IT news, forums, messages
Re: getting REGEXP query

Posted by Anze on 09/30/05 01:26

Please, anyone? Is it possible? I really need this...

Kind regards,

Anze


Anze wrote:

> 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

 

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

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