FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » reduce all spaces to one
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: reduce all spaces to one [message #176919 is a reply to message #176911] Sun, 05 February 2012 17:02 Go to previous messageGo to previous message
John is currently offline  John
Messages: 18
Registered: September 2010
Karma:
Junior Member
Am 05.02.2012 02:56, schrieb Jerry Stuckle:

> The /\s+/ will also get rid of tabs, converting all white space to a
> single blank.
>
> Perhaps a better option would be to export the file as a .csv and use
> fgetcsv(). It will save you a lot of work.
>

I thought about that, but I am still left with the problem of some sort
of manual intervention : for example the literals are not embedded in
quotes. I'll have to differentiate between columns/rrow titles and
actual values.

Also the problem with the commas vs points is due to regional
configuration, (in the EU decimal values have mostly commas).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Check email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 11:13:42 GMT 2024

Total time taken to generate the page: 0.03982 seconds