title: Use column as regex pattern with QueryDSL
body: <p>I'm trying to use a column as a regular expression to match against a user provided string, but can't figure out how to do it with QueryDSL. Mostly I can't figure out how to put the user supplied string on the lefthand side of the expression.</p>
  
  <p>Basically I'm looking to do something similar to the following, where <code>~</code> is my databases symbol for regex matching…</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT * FROM thing WHERE 'user supplied string' ~ thing.match
  </code></pre>