basic regex quesiton.

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

(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
DoAllKindsOfStuff()
end if

Thanks

jeff
 
Jeff,

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

microsoft.public.dotnet.general

Cor
 
(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
DoAllKindsOfStuff()
end if

Thanks

jeff
(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):

http://groups.google.com/group/micr...c82e6/78d65d838d4b4a15?hl=en#78d65d838d4b4a15


Thanks,

Seth Rowe
 
Back
Top