title: MVC C# single regex to validate curly braces and angle brackets
body: <p>I am trying to make a spinner for one of my projects, and I have a text area and I want to validate text if curly braces are closed and text don't have angle brackets. </p>
  
  <p>So far I am able to check if text has any angle brackets present with <code>[^&lt;&gt;]*</code></p>
  
  <p>I have this string <code>{hello|hi|hey} arbaz, {how are you?|how you doing}</code>
  and i want to validate if curly braces is closed correctly. for example string can't be </p>
  
  <p><code>{{hello|hi|hey}} arbaz, {{how are you?|how you doing}}</code></p>
  
  <p>OR </p>
  
  <p><code>{{hello|hi|hey} arbaz, {how are you?|how you doing}}</code></p>
  
  <p>it can't be wrap in curly brackets. </p>
  
  <p><code>\{{?&gt;\{{?&lt;c&gt;}|[^{}]+|\}{?&lt;-c&gt;}}*{?{c}{?!}}\}</code> is my regex so far. </p>
  
  <p>I need a regex which can validate with curly braces and don't allow the angle brackets. Please forgive me for my bad English. Thanks</p>