basic regex quesiton.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff

    #1

    basic regex quesiton.


    (apologies if this gets posted twice, the first didn't go through after a
    day)
    ....hoping someone can help someone still new to vb.net 2005 with something
    new to him.

    ....been successfully using the regular expression validators from the
    toolbox, but now I have need to do something strictly with code.

    ....need to determine if a stored string matches a stored regular expression.

    ....not sure what to search under for an example to give me a starting point.
    I can figure out the actual expression syntax and the rest if someone can
    get me started.

    e.g., something along these lines

    dim myregex as new regex
    if mystoredstring = regex then
    DoAllKindsOfStu ff()
    end if

    Thanks

    jeff


    --
    Posted via a free Usenet account from http://www.teranews.com

  • Cor Ligthert [MVP]

    #2
    Re: basic regex quesiton.

    Jeff,

    In my idea you have more change for Regex questions in the newsgroup.

    microsoft.publi c.dotnet.genera l

    Cor

    "Jeff" <none@nothingX. comschreef in bericht
    news:464d1513$0 $10194$88260bb3 @free.teranews. com...
    >
    (apologies if this gets posted twice, the first didn't go through after a
    day)
    ...hoping someone can help someone still new to vb.net 2005 with something
    new to him.
    >
    ...been successfully using the regular expression validators from the
    toolbox, but now I have need to do something strictly with code.
    >
    ...need to determine if a stored string matches a stored regular
    expression.
    >
    ...not sure what to search under for an example to give me a starting
    point.
    I can figure out the actual expression syntax and the rest if someone can
    get me started.
    >
    e.g., something along these lines
    >
    dim myregex as new regex
    if mystoredstring = regex then
    DoAllKindsOfStu ff()
    end if
    >
    Thanks
    >
    jeff
    >
    --
    Posted via a free Usenet account from http://www.teranews.com
    >

    Comment

    • rowe_newsgroups

      #3
      Re: basic regex quesiton.

      On May 17, 11:45 pm, "Jeff" <n...@nothingX. comwrote:
      (apologies if this gets posted twice, the first didn't go through after a
      day)
      ...hoping someone can help someone still new to vb.net 2005 with something
      new to him.
      >
      ...been successfully using the regular expression validators from the
      toolbox, but now I have need to do something strictly with code.
      >
      ...need to determine if a stored string matches a stored regular expression.
      >
      ...not sure what to search under for an example to give me a starting point.
      I can figure out the actual expression syntax and the rest if someone can
      get me started.
      >
      e.g., something along these lines
      >
      dim myregex as new regex
      if mystoredstring = regex then
      DoAllKindsOfStu ff()
      end if
      >
      Thanks
      >
      jeff
      >
      --
      Posted via a free Usenet account fromhttp://www.teranews.co m
      (apologies if this gets posted twice, the first didn't go through after a
      day)
      It did actually go through, it was just delayed greatly. Here is the
      archive of your original thread (with solutions):




      Thanks,

      Seth Rowe

      Comment

      Working...