Results 1 to 5 of 5

Thread: adding regular expressions component?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    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.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: adding regular expressions component?

    nm i figured that part out...

    except they dont have the Global parameter anymore... idk what repalced that.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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
  •  



Click Here to Expand Forum to Full Width