|
Posted by moxie19 on 06/19/06 06:51
I figured it out. I added \s and it works great.
moxie19@gmail.com wrote:
> 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]
|