<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>hi<BR>
<BR>
I have a matching problem... I am wanting to identify whether or not a string is an opening substring of another (ignoring leading spaces). I have this:<BR>
word is a single word and str is a string.<BR>
<BR>
match :: String -> String -> (Bool, String)<BR>match word str <BR> | if removeSpace str `elem` (removeSpace word) ++ rest = (True, rest)<BR> | otherwise == (False,str)<BR> where rest = str<BR>
<BR>
Any help?<BR>
<BR>
Ryan <BR> <BR>
<BR>
<BR><br /><hr />Can you guess the film? <a href='https://www.searchcharades.com' target='_new'>Search Charades!</a></body>
</html>