You are here: Re: [PHP] Really simple regex « PHP « IT news, forums, messages
Re: [PHP] Really simple regex

Posted by Dotan Cohen on 06/09/05 17:55

On 6/8/05, John Nichel <john@kegworks.com> wrote:
> preg_replace ( "/x+/", "x", $string );
> preg_replace ( "/x{1,}/", "x", $string );
>
> But those will also change a letter 'x' in a word, so you'll probably
> need to tinker with that part too.
>
> --
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> john@kegworks.com
>

Acually, I am replacing , with _ but I used the letter x in my example
because of it's universal acceptance as a variable. But thanks for the
tip!

Dotan

http://lyricslist.com/lyrics/artist_albums/51/backstreet_boys.php
Backstreet Boys Lyrics

 

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

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