title: Search by regular expression not working in spring boot mongo repository method
body: <p>I am using mongo repository for POJOs and need to use regular expression to fetch some data.</p>
  
  <pre><code>class A {
      String str;
  }
  </code></pre>
  
  <p>in controller,</p>
  
  <pre><code>String s = "/xyz";
  
  repositoryA.findByStrLike(s + "/[a-zA-Z0-9]*$")
  </code></pre>
  
  <p>Above call is not returning object with Str "/xyz/string" although it exists.</p>