Reply to Re: Remove links from a string

Your name:

Reply:


Posted by Stefan Rybacki on 07/13/05 12:11

Phil wrote:
> Philip Seeger wrote:
>
>
>>Hi everybody.
>>
>>Can anybody tell me how I can take all hyperlinks out of a string?
>>Example: I have a string like this: 'blah blah bubble <a
>>href="http://www.google.com/">googling's funny</a> bubble blah'.
>>And it should transformed to 'blah blah bubble googling's funny bubble
>>blah'.
>
>
> strip_tags()
>
While strip_tags() removes all html tags from a string this is perhaps not that what the
OP wants. I guess he is more looking for a regular expression like this:

/<a.*>|</a>/iu

Regards
Stefan

[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

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