title: Java split is eating my characters
body: <p>I have a string like this <code>String str = "la$le\\$li$lo"</code>.</p>
  
  <p>I want to split it to get the following output <code>"la","le\\$li","lo"</code>. The \$ is a $ escaped so it should be left in the output.</p>
  
  <p>But when I do  <code>str.split("[^\\\\]\\$")</code> y get <code>"l","le\\$l","lo"</code>.</p>
  
  <p>From what I get my regex is matching a$ and i$ and removing then. Any idea of how to get my characters back?</p>
  
  <p>Thanks</p>