title: Get matching substring from a string
body: <p>I want to get the matching substring from a given string. Below is the example what I am trying to get:</p>
  
  <pre><code>string name = Science;
  
  string sentence = Topper in Science;
  </code></pre>
  
  <p>I want to compare name inside the substring of sentence and get to know whether it is present or not.</p>