You are here: Re: Sorting Massive amounts of Data « PHP Programming Language « IT news, forums, messages
Re: Sorting Massive amounts of Data

Posted by Sanders Kaufman on 11/15/06 16:33

Moot wrote:
> Advo wrote:

>> For instance, a sample line is:
>>
>> MNs73dd78INFORMATION I NEED 32427 12759 39384425 495242 15.206412
>> 0.191214 44.164503 -93.993798
>>
>> Im assuming I would some how remove the first 9 characters, and then
>> some how remove all numbers and decimal places, but i've got no idea
>> how to go about it.
>>
>> Kind Regards
>
> Open the file
> Loop through each line with fgets [1]
> Use substr [2] to yank out from character 9 to whatever you need
> Dump data into an array or an output file as you see fit

That's one way - but using RegEx would probably be
better... if you can figure out a *pattern* in the
corruption (e.g. first 9 characters, all numerals
after the last alpha character).

If you can't figure out a forumla/pattern - you'll
just have to do it manually. - no way around it.

 

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

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