How to use "AND" in regular expression

J

John Smith

My understanding is that to search for "big" OR "small" in a string,
one uses the following expression:
r = New Regex("big|small", _
RegexOptions.IgnoreCase Or RegexOptions.Compiled)

What is the syntax for searching for "big" AND "small" in a SINGLE
regular expression statement? (I try to avoid using 2 seperate regular
expressions with "if/then" if possible)

TIA.
 

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

Top