Need help with Regular Expression

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

How do I set this expression up for either IS NULL or IS NOT NULL?

I am trying to check to see if an incoming string has either of the two
values.

new Regex(@"^([^<>=]*)\s*IS NULL\s*\s*IS NOT NULL\s*)$",
RegexOptions.Compiled | RegexOptions.IgnoreCase);



Thanks

Bill
 
How do I set this expression up for either IS NULL or IS NOT NULL?

I am trying to check to see if an incoming string has either of the two
values.

new Regex(@"^([^<>=]*)\s*IS NULL\s*\s*IS NOT NULL\s*)$",
RegexOptions.Compiled | RegexOptions.IgnoreCase);

Do you have any particular reason to use regular expressions here
instead of straight forward string comparisons?

Jon
 

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

regular expression 1
Regex help needed 1
Regex woes 8
Regex - Matching URLS 2
Obfuscate 4
Regex performance issue 6
Regex Issues - Finding Qualified URLS 2
need some finer tuning on the regular expression 9

Back
Top