title: Javascript case insensitive regex without flags
body: <p>Situation:</p>
  
  <p>MVC+DevExpress .NET</p>
  
  <p>Client-side validation based on server-side attributes (like <strong>[RegularExpression("^con|prn|aux$")]</strong>)</p>
  
  <p>Is there a way to make validation case-insensitive?</p>
  
  <p>I cannot add <strong>i</strong> flag, because RegExp object is created inside DevExpress client-side code by </p>
  
  <p><strong>var regEx = new RegExp(this.pattern);</strong></p>
  
  <p>.NET-style inline modifiers, like <strong>(?i)</strong> return "Unexpected quantifier" error.</p>
  
  <p>Ugly alternative is writing something like <strong>^[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]$</strong></p>