Thanks,
Found this tutorial which works with log files like I have to do : https://www.fpcomplete.com/school/starting-with-haskell/libraries-and-frameworks/text-manipulation/attoparsec
Roelof
Benjamin Edwards schreef op 22-2-2015 om 20:14:
If the format is sufficiently simple a regex can be a very neat way to express the idea. Mostly people use parser combinators. Have a look at parsec / attoparsec on hackage.
Ben
On Sun Feb 22 2015 at 18:50:18 Roelof Wobben <r.wobben@home.nl> wrote:
Hello,
Im still busy with CIS 194
Now im facing this problem.
There is a log file of strings.
Most of them are of this format char Number [chars]
What is the best way to check if the string has this format ?
Regex or another way ?
Roelof
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners