Re: Trailing Spaces Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 18, 2008 at 11:41 AM, Wei, Alice J. <ajwei@xxxxxxxxxxx> wrote:

> Hi,



>
> Is there some way that I can have it so that it can print out:
>
> 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424
>
> I tried using \s for trailing spaces, but It all gave me output of
> everything in the single line.
> Have I missed something here?
>

You're just removing every space there is, letting none for values
separation.

Just replace every "\s\s" with "\s" until there's no more "\s\s".

Probably some regex would be better, but that's not my area :)

Regards,
Thiago


>
> Thanks in advance.
>
> Alice
> ======================================================
> Alice Wei
> MIS 2009
> School of Library and Information Science
> Indiana University Bloomington
> ajwei@xxxxxxxxxxx
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Thiago Henrique Pojda

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux