Regex to ignore case sensitive String Java script
<p>I am working on a requirement where I need to allow couple of values in a text box before submitting the form. The below regex is working fine but it is allowing strings other than "testing" and "dev".  Important thing is it should ignore case sensitive .It should allow "dev","DEV","dEv" etc...</p>

<pre><code>pattern="(?i)^(?:testing|dev|)$" 
</code></pre>