title: Reqular expression for alpha numeric and empty spaces
body: <p>here i am entering alphanumeric characters with empty spaces. but this expression fails</p>
  
  <pre><code>// Function to Check for AlphaNumeric.
  public bool IsAlphaNumeric(String strToCheck)
  {
      Regex objAlphaNumericPattern = new Regex(@"[a-zA-Z0-9\s]*");
      return objAlphaNumericPattern.IsMatch(strToCheck);
  }
  
  protected void Button1_Click(object sender, EventArgs e)
  {
      string straddres = "2";
      straddres = TextBox1.Text;
      if (!IsAlphaNumeric(straddres.Trim()))
      {
          Label1.Text = "Error";
      }
      else
      {
          Label1.Text = "Success";
      }
  }
  </code></pre>
  
  <p>ex:</p>
  
  <pre><code>123 abc, 23 2322 erwer
  </code></pre>
  
  <p>these words should get statsified please let me know  where my expression is  wrong</p>
  
  <p>ex:</p>
  
  <pre><code>@#23,#$ 34,@&amp;* 34s 
  </code></pre>
  
  <p>should bot  get satisfied</p>