title: Regex that match spaces if not inside {...} in Java
body: <br>
  I am trying to find Regular Expression that will match every space if it is not between { } in any combination. I have already come up with this one ```\s(?![^{]*})+``` but it's not working correctly!<br>
  link to image <br>
  As you can see on the image its matching those spaces marked in red rectangle even though they are between { }, only not exatly between { } but between { { and that something that I do not want to... <br>
  There are some examples to understand what regex I want because its a little but complex: <br>
  1. <br>
  ```lol.something.xd 1 F 1.99 #adasdaops {something.awesome 4 8 9} null T;``` = Match every space here simply if not inside { }!
  <br>
  2. <br>
  ```lol.something.xd-1-F-1.99-#adasdpopu-{something.awesome 4 8 9 5 {#adsadasdasd} null F T {something.awesome.Foo 7 8 9 4545 T} null null F T}-45.5F-null-{alpha.beta.gama 45}-45-null;``` = Match only spaces that are represented as "-"
  <br>
  I need this regex to split Strings in Java if it matters. 
  <br><br>
  Note: Unfortunately, Java does not support recursive regex so keep it on mind in future answers!
  <br>
  Side Note: The web page is not showing code fences on my question from some reason. Maybe only I do not see it, but If you too and you know why then please fix it.