Parsing formatted text

Ola Andersson A (AL/EAB) ola.a.andersson@REDACTED
Tue Jul 12 11:44:22 CEST 2005


string:tokens may be a good start.
/OLA.

> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Joel Reymont
> Sent: den 12 juli 2005 11:31
> To: Erlang Users' List
> Subject: Re: Parsing formatted text
> 
> 
> I will rephrase a bit... How would you parse the date, time and  
> numbers in the string below. I understand that I can extract the  
> fields using binary matching and I'm doing that already.
> 
> I wish there was a version of io:format that read data from a 
> "string".
> 
> On Jul 12, 2005, at 11:27 AM, Joel Reymont wrote:
> 
> > Folks,
> >
> > How would you parse a line like this in Erlang?
> >
> > TRADE,X_._.,20040901,00:00:02,1105.25,,1
> 
> --
> http://wagerlabs.com/uptick
> 
> 
> 
> 



More information about the erlang-questions mailing list