vbmark,
In addition to the other comments.
You can use a single regex to check for a string with either 2 "-" or 2 "+",
do you expect them to be consecutive or is stuff allowed to between them...
Here is a pattern that allows anything between the "-" or "+".
Const pattern as String = "\-.*\-|\+.*\+"
(Note its a simpler version of Chris', the leading & trailing ".*" are
implied).
Expresso & RegEx Workbench both have wizards of varying degrees to help you
build your expression, plus they allow you to test your expressions, also
the analyzer/interpreter in each is rather handy.
Expresso:
http://www.ultrapico.com/Expresso.htm
RegEx Workbench:
http://www.gotdotnet.com/Community/U...-4ee2729d7322A
tutorial & reference on using regular expressions:
http://www.regular-expressions.info/
The MSDN's documentation on regular expressions:
http://msdn.microsoft.com/library/de...geElements.asp
Hope this helps
Jay
"vbmark" <no@email.com> wrote in message
news:Xn************************@130.133.1.4...
I'm new to RegEx in vb.net so I'm not sure how to do this.
I want to know if a string contains two minus signs "-". If there are two
then I want it to return TRUE.
I also need to know if the string contains two plus signs "+". Should
this
be a seperate RegEx or can one RegEx check for both signs?
Thanks!