title: How would I check to see if two strings contain the same letters
body: <p>I'm currently completing a programming challenge in C#, I'm stuck on the main part. The application must take two words and see if they contain the same letters. How would I go about checking to see if <code>input1</code> and <code>input2</code> contain the same letters?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Text.RegularExpressions;
  
  namespace Words_With_Enemies
  {
      class Program
      {
  
          static string input1, input2;
  
          public void findLetters()
          {
              bool regexWord1 = Regex.IsMatch(input1, @"^[a-zA-Z]+$");
          }
  
          static void Main(string[] args)
          {
  
              Console.WriteLine("Please enter two words");
              input1 = Console.ReadLine();
              input2 = Console.ReadLine();
  
              Console.WriteLine("You have entered the following two words:");
              Console.WriteLine(input1);
              Console.WriteLine(input2);
  
              Console.ReadLine();
  
          }
  
       }
  }
  </code></pre>