You have to use the System.Text.RegularExpression namespace
VB.Net syntax
Private Sub Test()
Dim regex As String = "foo"
Dim options As System.Text.RegularExpressions.RegexOptions = System.Text.RegularExpressions.RegexOptions.IgnoreCase
Dim reg As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex(regex, options)
Dim expressionmatch as System.Text.RegularExpressions.MatchCollection = reg.Matches
Dim expressionmatched as System.Text.RegularExpressions.Match
For Each expressionmatched In expressionmatch
' I add expressionmatched.Value to an array
Next
End Sub
Michael
"In theory, theory and practice are the same. In practice, they are not."
Albert Einstein