Reply to Re: regular expression problem (preg_replace)

Your name:

Reply:


Posted by monomaniac21 on 01/03/07 16:19

Rik wrote:
> Rik wrote:
> > preg_replace('/i($|i)/si','$1',$string);
>
> No need for the /s modifier offcourse...
> --
> Rik Wasmus

hi rik that works great for instances of a single i at the end of the
string (last character) but i also need it to strip out any i's that
occur next to other i's so for example:

230ii := 230, 230iiiiii := 230,
just as 230i := 230

thanks for your help

marc

[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

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