title: What would be the best way of checking whether a string contains XML tags?
body: <p>I know that the following would find potential tags, but is there a better way to check if a string contains XML tags to prevent exceptions when reading/writing the string between XML files?</p>
  
  <pre><code>    string testWord = "test&lt;a&gt;";
      bool foundTag = Regex.IsMatch(testWord, @"^*&lt;*&gt;*$"));
  </code></pre>