title: Regex to match from partial or camel case string?
body: <p>I would like a regular expression to match given a partial or camel cased string. For example, if the search set contains the string "MyPossibleResultString" I want to be able to match it with the likes of the following:</p>
  
  <ul>
  <li>MyPossibleResultString</li>
  <li>MPRS</li>
  <li>MPRString</li>
  <li>MyPosResStr</li>
  <li>M</li>
  </ul>
  
  <p>I'd also like to include wildcard matching, e.g.:</p>
  
  <ul>
  <li>MyP*RString</li>
  <li>*PosResString</li>
  <li>My*String</li>
  </ul>
  
  <p>If it's not clear what I mean, the only example I can think of is Eclipse's "Open Type" dialog which is pretty much the exact behaviour I'm looking for. I'm not too up on the use of regexes, so I'm not sure if it matters if I'm looking for a solution in Java.</p>