title: sparql regex compare two string variables (one is composed by the other)
body: <p>I am trying to compare two string variables to discover if one is contained in the other, specifically if one is composed of the other (so, I would like to avoid retrieving that "information" contains "format". I am interested only in results similar to "information_management" includes "information".</p>
  
  <p>I have tried both FILTER CONTAINS() and FILTER regex() with the same results. How can I modify the query so it includes the fact that there needs to be a space either before or after the term?</p>
  
  <pre><code>SELECT DISTINCT ?l1 ?l2
  WHERE
  {
  ?term1 skos:prefLabel ?l1.
  ?term2 skos:prefLabel ?l2.
  FILTER(contains(?l1,?l2))
  }
  </code></pre>