|
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]
|