Why String.contains() can not accept a regex as a parameter?
<p>Any idea to Implementing this?</p>

<p>Is this best way to do?</p>

<pre><code>boolean contains=string.split(regex,2).length==2;
</code></pre>

<p>Thanks a lot for any suggestion.</p>
