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:
- MyPossibleResultString
- MPRS
- MPRString
- MyPosResStr
- M
I'd also like to include wildcard matching, e.g.:
- MyP*RString
- *PosResString
- My*String
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.