You are here: Re: [PHP] Help with preg_replace « PHP « IT news, forums, messages
Re: [PHP] Help with preg_replace

Posted by Jason Wong on 09/28/06 11:20

On Tuesday 05 July 2005 02:21, Marcos Mendonça wrote:

> This works fine for links with id 0, 1 and 4. But i haven´t been able
> to figure out how to match and replace links with id 2 and 3.

Works for me. Check whether $body_html really does contain what you're
looking for in id 2 & id 3.

You may also want to consider using preg_quote() instead of str_replace().

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

 

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

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