-
Jan 28th, 2005, 03:21 PM
#1
Thread Starter
Fanatic Member
adding regular expressions component?
In vb.net, I am not sure what reference to add for using regular expressions... as of know when I try to create a new instance.....
Dim myReg as New ...? (I try RegEx but it doesnt show up)
Not sure how to do this.
-
Jan 28th, 2005, 03:32 PM
#2
Re: adding regular expressions component?
you just need to qualify the namespace
Dim myReg as System.Text.RegularExpressions.Regex
or you can put at the top of your code (above the class declaration)
imports System.Text.RegularExpressions
and then in your code you can do
Dim myReg as Regex
-
Jan 28th, 2005, 03:44 PM
#3
Thread Starter
Fanatic Member
Re: adding regular expressions component?
Cool.. now I am trying to pass options such as IgnoreCase.. but this is different from the older control... Whats the correct way to do this?
Thanks again.
-
Jan 28th, 2005, 03:52 PM
#4
Thread Starter
Fanatic Member
Re: adding regular expressions component?
nm i figured that part out...
except they dont have the Global parameter anymore... idk what repalced that.
-
Jan 28th, 2005, 03:53 PM
#5
Re: adding regular expressions component?
what exactly are you trying to do? please be more specific of the task
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|