title: How to make the matching using FILTER and regex in sparql?
body: <p>I'd like to match an input given by user (String) with a value (String) of a specific node existing in rdf file.</p>
  
  <p>I applied the following exact mode for matching (input=NodeValue):</p>
  
  <pre><code> ...
   FILTER regex (?NodeValue,"userinput$","i").
  </code></pre>
  
  <p>for this type of matching (input &lt; NodeValue ) I used the following:</p>
  
  <pre><code>...       
   FILTER regex (?NodeValue,".*userinput.*","i").
  </code></pre>
  
  <p>So, my question is how to set my regex in order to get the type of matching when (input > NodeValue) I mean a query that's returns a list of ?nodeValue subsumed by a given user input.</p>
  
  <p>Eg.  if the user enters <code>patagoniaisbeautiful</code> it returns <code>patagonia</code>. </p>
  
  <p>Thank you in advance.</p>