title: Grails/Groovy regular expression- how to use (?i) to make everything case insensitive?
body: <p>I use the following RegEx:</p>
  
  <pre><code>url (blank:false, matches: /^(https?:\/\/)(?:[A-Za-z0-9]+([\-\.][A-Za-z0-9]+)*\.)+[A-Za-z]{2,40}(:[1-9][0-9]{0,4})?(\/\S*)?/)
  </code></pre>
  
  <p>I want to add (?i) to make everything case insensitive. How should I add this?</p>