<html><head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="FileUtil" rel="Chapter" href="FileUtil.html"> <link title="FileUtilStr" rel="Chapter" href="FileUtilStr.html"> <link title="FilePath" rel="Chapter" href="FilePath.html"><title>FileUtilStr.match_compile</title> </head> <body> <code class="code"><span class="keyword">let</span> match_compile str =<br> <span class="keyword">let</span> regex = <br> <span class="constructor">Str</span>.regexp str<br> <span class="keyword">in</span><br> <span class="keyword">fun</span> fn <span class="keywordsign">-></span> <span class="constructor">Str</span>.string_match regex fn 0</code></body></html>