title: Regular expression - Avoiding characters
body: <p>While using some regex in C#, I'm facing the following problem :</p>
  
  <p>Consider this simple string : <strong>~0~This is a simple text~POP~NIZ~0~0~</strong></p>
  
  <p>I would like to pick any strings between two '~', that contains more than 3 chars except of course the '~'. In my example, the would be :</p>
  
  <p>This is a simple text</p>
  
  <p>I could make something like : ([\w]|[\d]|.|\,.................){4-500}</p>
  
  <p>I would end with a really long regex, impossible to debug and not readable... </p>
  
  <p>Instead, I would prefer to create a regex like <strong>"Give me any characters, except '~' that is contained between '~' and '~' "</strong>.</p>
  
  <p>I can't find a way to use [^] properly !</p>
  
  <p>How can I do this ?</p>
  
  <p>Thanks in advance !</p>
  
  <p><strong>ANSWER : I've finally done this : ~[^~]{3,}~</strong></p>
  
  <p><strong>It takes everything but '~', contained between two '~' and that is more than three chars long.</strong></p>
  
  <p>Thanks for your answers !</p>