title: regex # Replace square brackets to braces,but don't replace if text is in this format [text][text2]
body: <p>First of all,sorry if the title is 'messed up' and you can't really understand if that well..i'm not that good with titles.</p>
  
  <p>I'm trying to make a regex match (first time using complex regex),that replaces [ with { and ] with } but i have a problem.. my script is something like this</p>
  
  <pre><code> new asd[MAX_PLAYERS];
  
   asd[player] = 1;
   if(asd[player] &gt;= 1)
  
   other[player][index] = 1;
  </code></pre>
  
  <p>and i'm trying to only replace the variables that only have one match of [text],so that the code above will become</p>
  
  <pre><code> new asd{MAX_PLAYERS};
  
   asd{player} = 1;
   if(asd{player} &gt;= 1)
  
   other[player][index] = 1;
  </code></pre>
  
  <p>I tried using [[a-zA-Z_]*] but it matches everything that's in brackets,and it would of been good if my script wasn't 25k lines long.
  I tried using [[a-zA-Z_]*] |[[a-zA-Z_]*]; which kinda works but not,because it still matches the [index]
  And i also tried something to not match the lines that have ] in front of [ , but i failed horribly.</p>
  
  <p>BTW - I'm using Notepad++</p>