You are here: Re: ereg_replace() problems « All PHP « IT news, forums, messages
Re: ereg_replace() problems

Posted by Johannes Wienke on 04/11/06 00:05

Am 10.04.2006 22:47 schrieb pieterprovoost@gmail.com:
> Hi,
>
> I would like to use the ereg_replace() function to replace wiki-like
> syntax, for example:
>
> [[somepage]]
> becomes <a href="index.php?page=somepage">somepage</a>
>
> **hello**
> becomes <i>hello</i>
>
> The problem with the first example is that "somepage" occurs twice
> after the replacement, the problem with the second example is that the
> opening and closing tags "**" are identical. Can anyone refer me to a
> good page on ereg_replace(), or help me with these examples?

Take a look at the manual. Don't use ereg-functions anymore!
preg_replace is much faster.

 

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

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