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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

basic regex question 5
Regex Problem 1
Newbie question about Regex 8
regular expression 1
Regular Expression question 5
Regex Output to Textbox 4
Another question about regex (not understanding) 5
RegEx question 8

Back
Top