You are here: Re: PHP RegEx « All PHP « IT news, forums, messages
Re: PHP RegEx

Posted by moxie19 on 06/19/06 03:09

This is great, but it takes out the spaces also, is there a way to
leave the spaces intact.






Rik wrote:
> moxie19@gmail.com wrote:
> > Also, does anybody know how to remove extra stuff from a string and
> > just leave alphabetical characters, like this:
> >
> > before: John *BigDogg* Smith!!!
> > after: John BigDogg Smith
>
> $string = preg_replace('/[^a-z]/i','',$string);
>
> Grtz,
> --
> Rik Wasmus

 

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

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