Necessary to escape a java regular expression in matches()?
<p>I'm currently doing a test on an HTTP Origin to determine if it came from SSL:</p>

<pre><code>(HttpHeaders.Names.ORIGIN).matches("/^https:\\/\\//")
</code></pre>

<p>But I'm finding it's not working. Do I need to escape <code>matches()</code> strings like a regular expression or can I leave it like <code>https://</code>? Is there any way to do a simple string match?</p>

<p>Seems like it would be a simple question, but surprisingly I'm not getting anywhere even after using a RegEx tester <a href="http://www.regexplanet.com/advanced/java/index.html" rel="nofollow">http://www.regexplanet.com/advanced/java/index.html</a>. Thanks.</p>
