You are here: Re: preg_replace backreferencing problem « PHP Programming Language « IT news, forums, messages
Re: preg_replace backreferencing problem

Posted by Bocah Sableng on 05/25/07 03:40

On May 25, 6:24 am, Terence <terence.par...@gmail.com> wrote:
> I've been puzzling over something for ages and now give up:
>
> Does anyone see any problem with any of the following:
>
> $line = preg_replace('/\[#([A-Fa-z0-9]{1,6})\]/i', "<font color='#
> ${1}'>", $line);

try:
$line = preg_replace('/\[#([A-Fa-z0-9]{1,6})\]/i', "<font color='#
$1'>", $line);

 

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

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