title: How can i split a String by last char with a regex?
body: <p>I can do it like this:</p>
  
  <pre><code>String s = "dsad.dd.ada....png";
  int i = s.lastIndexOf('.');
  String[] arr = {s.substring(0, i), s.substring(i + 1)};
  System.out.println(Arrays.toString(arr));
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[dsad.dd.ada..., png]
  </code></pre>
  
  <p>But i wanna understand how can i make it with regex.</p>
  
  <pre><code>String s = "dsad.dd.ada....png";
  String[] arr = s.split("REGEX");
  System.out.println(Arrays.toString(arr));
  </code></pre>