VB.NET Regular Expressions

What namespace or library must be referenced (imported?) to be able to use regular expressions in VB.NET?
I've seen references that they exist, but don't know how to reach out to use them.
[195 byte] By [LeonStevens] at [2008-1-13]
# 1
System.Text.RegularExpression
micxba at 2007-8-20 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Thanks for the statement.
New problem: System.Text.RegularExpression is not recognized. I assume that I'm missing an install component. Is this correct?
LeonStevens at 2007-8-20 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
Leon Stevens wrote:

New problem: System.Text.RegularExpression is not recognized. I assume that I'm missing an install component. Is this correct?

no.

this stuff is in system.dll, which is one of the core dlls of the clr. what do you mean when you say 'is not recognized'? what is the exact error message? are you possibly missing a reference to system.dll in your project?

WM_QUERY
thomas woelfer
http://www.die.de/blog

thomaswoelfer at 2007-8-20 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4
It's System.Text.RegularExpressions not System.Text.RegularExpression
MartinCarolan at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 5
I changed to System.Text.RegularExpressions (I left off the "s"), and I'm now making progress. Let me try a little more on my own; I may get back later.
LeonStevens at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 6
Function RegExpTest(ByVal patrn, ByVal strng)
Dim regEx, retVal ' Create variable.
regEx = New Regex()
regEx.Pattern = patrn ' Set pattern.
regEx.IgnoreCase = False ' Set case sensitivity.
retVal = regEx.Test(strng) ' Execute the search test.
If retVal Then
RegExpTest = "One or more matches were found."
Else
RegExpTest = "No match was found."
End If
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRegExp.Click
MsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))
End Sub
When I build this code, I get the message
C:\CS391\NA07\Form1.vb(119): Overload resolution failed because no accessible 'New' accepts this number of arguments.
Then, if I make this change
regEx = New Regex(patrn) ' Just to give it any parameter
it will then clean compile, but when I execute it gives
An unhandled exception of type 'System.MissingMemberException' occurred in microsoft.visualbasic.dll
Additional information: Public member 'Pattern' on type 'Regex' not found.
Sooooo, advice, please!
LeonStevens at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 7
Class Regex doesn't have properties Pattern and IgnoreCase. You should use something like this
regEx = New Regex(patrn, RegexOptions.IgnoreCase)
retVal = regEx.Test(strng)


begemot at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified