0px;"><p>Creates a new regular expression with pattern <code>r</code> and modifiers <code>opt</code>.</p>
<p>This is equivalent to the shorthand syntax <code>~/r/opt</code></p>
<p>If <code>r</code> or <code>opt</code> are null, the result is unspecified.</p></div></div><div class="platform platform-haxe-ui-toolkit"><a name="map"></a><h3 style="line-height: 15px;"><p><code style="margin-left: -5px;"><span class="keyword">function</span> <a href="#map"><span class="identifier">map</span></a>(s:<a class="type"