### Find String by Wildcards

Use the RegEx method matcher, to find a string using wildcards.
Example search in a listview for text
' Loop through the listview
For i = 0 To lvwHowTo.Items.Size - 1
' Get the listview selected items as string
Dim s As String = lvwHowTo.Items.Get(i)
' Define the matcher
Dim matcher1 As Matcher
' Match the text using * wildcards
matcher1 = Regex.Matcher(".*"& strFindText&".*", s)
' If find then do something. In this case set the selected listview index.
If matcher1.Find = True Then
lvwHowTo.RequestFocus
lvwHowTo.SelectedIndex = i
lvwHowTo.ScrollTo(i)
Return
End If
Next

Changed: , Category: Matcher, File: T6C218M1603.htm, ID: 1603