title: how to use Wildcard search in angularjs?
body: <p>I want to implement a wildcard search. Write now what i am doing is : </p>
  
  <pre><code>var patt = new RegExp(input); 
  if(patt.test(searchString))
      $scope.filteredModel.push(searchString);
  </code></pre>
  
  <p>But this does not give wildcard search result. i.e If I enter <code>v*</code>, I should get all strings <em>starting</em> with <code>v</code> . But in this case , as I am using a <code>regExp</code>, I am getting all strings (as <code>v*</code> means <em>0 or more</em> occurrences of <code>v</code>) . How can I customize this?</p>