title: Apply regular expression with different string array using Regex
body: <p>I want to use different scenarios of the string matched and filter.</p>
  <p>Ex:-</p>
  <pre><code>a = ['Rubico Fans Draw', 'David Rubico Fanch', 'Nikas Fans Farius']
  </code></pre>
  <p>I want out like this:-</p>
  <pre><code>'Rubico' 
  o/p:- ['Rubico Fans Draw', 'David Rubico Richad']
  
  
  
  'Fan'  
  o/p:- ['Rubico Fans Draw', 'David Rubico Fanch', 'Nikas Fans Farius']
  
  
  
  'Rubico Fans Draw' 
  o/p:- ['Rubico Fans Draw']
  </code></pre>