I have a list of string. When user inputs chars in, the program would display all possible strings from the list in a textbox.
Dim fruit as new List(Of String) 'contains apple,orange,pear,banana
Dim rx as New Regex(fruit)
For example If user enters a,p,l,e,r , then the program would display apple and pear. It should match any entry for which all letters have been entered, regardless of order and regardless of additional letters. What should I add to rx? If it's not possible with Regular Expressions, then please specify any other ways to do this.
a,p,lmatchesapplebutp,l,adoes not? And: shouldpearreally match in your example? Because there is alin your character list.