[Numpy-discussion] Fastest way to parsing a specific binay file

Robert Kern robert.kern at gmail.com
Wed Sep 2 13:29:42 EDT 2009


On Wed, Sep 2, 2009 at 12:27, Gökhan Sever<gokhansever at gmail.com> wrote:
>
> On Wed, Sep 2, 2009 at 12:01 PM, Citi, Luca <lciti at essex.ac.uk> wrote:
>>
>> If I understand the problem...
>> if you are 100% sure that "', '" only occurs between fields
>> and never within, you can use the 'split' method of the string
>> which could be faster than regexp in this simple case.
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
> But it is not possible to extract a pattern such as within a field. A
> construct like in regex starting with a ; till the end of the section. ??

I can't parse that sentence. Can you describe the format in a little
more detail? Or point to documentation of the format? Or the IDL code
that parses it?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list