Date Regex with special character as optional pre element : <p>Date Regex with special character as optional pre element</p>

<p>I need a date regex for YYYY-MM-DD, plus the following four case: </p>

<pre><code>1978-12-20
&gt;1978-12-20
&gt;=1978-12-20
&lt;1978-12-20
&lt;=1978-12-20
</code></pre>

<p>How can I allow those 5 scenarios?  </p>
