title: How to use Regex keyword in Spring Data Repository Method
body: <p>I am currently using <code>spring-data-jpa</code> version <code>1.9.4</code>.</p>
  
  <p>I have a MySql table with columns project(integer), summary(varchar), and description(varchar).</p>
  
  <p>I have a regex that I would like to use to search the summary and/or description field meaning that if it finds it in summary does not need to apply regex to description.</p>
  
  <p>The repository method I am attempting to use is:</p>
  
  <pre><code>List&lt;Issue&gt; findByProjectAndSummaryOrDescriptionRegex(long project, String regex)
  </code></pre>
  
  <p>The error I am receiving is:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException:  Unsupported keyword REGEX (1):
    [MatchesRegex, Matches, Regex]</p>
  </blockquote>
  
  <p>It is difficult in my company environment to update/upgrade versions, so if the issue is NOT my syntax but rather the  then if someone knows which version now supports 'Regex' for query derivation or where I could find that specific information I would be grateful.  I have looked at the <code>Changelog</code> and it appears that <code>1.9.4</code> should support but it appears not.</p>
  
  <p>Thanks for your help!</p>
  
  <p>JD</p>
  
  <p>EDIT 1:  I am aware of the <code>@Query</code> annotation but have been asked by my lead to only use that as a last resort if I cannot find the correct version which supports keyword REGEX [MatchesRegex, Matches, Regex]</p>