title: Regex to match a specific character?
body: <p>I need to make a Regular expression that will match the character "N" when it is alone. So far, I've come up with the expression: <code>"^[N]$"</code> which seems to work in this example. It doesn't match on the other three, just the "N". </p>
  
  <pre><code>public static void Main()
  {
      string[] words = new string[] { "42ND", "N", "WATERING", "ANONYMOUS"};
  
      string pattern = @"^[N]$";
  
      foreach (string word in words)
      {
          if( Regex.IsMatch(word, pattern))
          {
              Console.WriteLine(word + " Is a match"); 
          }
      }
  } 
  </code></pre>
  
  <p>Can anyone pick out any problems with this or provide a better one? Thank you! </p>
  
  <p>Edit for a little clarity: 
  I'm just looking to match on the letter <code>"N"</code> and nothing more. It should not match on "NN", "NNN", or any variation and should not match on any words that contain the letter <code>"N"</code>. </p>