<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>hi<BR>
&nbsp;<BR>
I have four functions below: What I want to do is have a way to parse more than one digit or more than one string head in ParseTrue. Any ideas...<BR>
&nbsp;<BR>
removeSpace:: String -&gt; String<BR>removeSpace = dropWhile (`elem` space) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where space = [' ']<BR>
&nbsp;<BR>
match :: String -&gt; String -&gt; (Bool, String)<BR>match word str <BR>&nbsp;&nbsp;&nbsp;| ((isPrefixOf) (removeSpace word) (removeSpace str)) = (True,rest)<BR>&nbsp;&nbsp;&nbsp;| otherwise = (False,str)<BR>&nbsp;&nbsp;&nbsp;&nbsp; where rest = drop (length (removeSpace word)) (removeSpace str)<BR>&nbsp;<BR>parseDigit :: String -&gt; [(Int, String)]<BR>parseDigit (x:xs) <BR>&nbsp;| isDigit x = [(read [x],xs)]<BR>&nbsp;| otherwise = []<BR>
&nbsp;<BR>
parseTrue :: String -&gt; (Bool, String)<BR>parseTrue x = match "True" x<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
Ryan<BR>&nbsp;<BR><BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR><br /><hr />Get closer to the jungle… <a href='http://entertainment.uk.msn.com/tv/realitytv/im-a-celebrity/' target='_new'>I'm a Celebrity Get Me Out Of Here!</a></body>
</html>