<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks, <br>
<br>
Found this tutorial which works with log files like I have to do :
<a class="moz-txt-link-freetext" href="https://www.fpcomplete.com/school/starting-with-haskell/libraries-and-frameworks/text-manipulation/attoparsec">https://www.fpcomplete.com/school/starting-with-haskell/libraries-and-frameworks/text-manipulation/attoparsec</a><br>
<br>
Roelof<br>
<br>
<br>
<br>
Benjamin Edwards schreef op 22-2-2015 om 20:14:<br>
</div>
<blockquote
cite="mid:CAN6k4niJczampuoPdemg=dp5qwL0n0G+vdAK4LUOaVmZC81ANg@mail.gmail.com"
type="cite">
<div dir="ltr">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.<br>
<div><br>
</div>
<div>Ben</div>
</div>
<br>
<div class="gmail_quote">On Sun Feb 22 2015 at 18:50:18 Roelof
Wobben <<a moz-do-not-send="true"
href="mailto:r.wobben@home.nl">r.wobben@home.nl</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Im still busy with CIS 194<br>
<br>
Now im facing this problem.<br>
<br>
There is a log file of strings.<br>
<br>
Most of them are of this format char Number [chars]<br>
<br>
What is the best way to check if the string has this format ?<br>
<br>
Regex or another way ?<br>
<br>
Roelof<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a moz-do-not-send="true" href="mailto:Beginners@haskell.org"
target="_blank">Beginners@haskell.org</a><br>
<a moz-do-not-send="true"
href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>