title: C# Regex - How to validate for either specific words or numbers but not both
body: <p>I need to validate a value and the requirement is it may either contain digits 0-9 or a specific words but not both.</p>
  
  <p>I am using the following expression</p>
  
  <pre><code>Regex regex = new Regex(@"\b(Private Bag)\b|[0-9]");
  </code></pre>
  
  <p>However, if find that using the above expression for validating is passing for all scenarios.</p>
  
  <p>Where am I going wrong with this regex?</p>