title: When i try to parse by js split the first element is empty string
body: <p>I try to parse ini file, the first string is empty string, but others okay:</p>
  
  <p>Structure:</p>
  
  <pre><code>[sensor1]
   param1: value
  
  [sensor2]
   param1 : value
   param2 : value
  </code></pre>
  
  <p>And my code is:</p>
  
  <pre><code> success: function(data) {
          var parsedArr = data.split(/\s*\[(.*)\]\s*\n/);
          console.log(parsedArr);
      }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code> 0: ""
   1: "sensor1"
   2: "name:      brightness temperature↵
   3: "sensor2"
   4: "name:      brightness temp. IR↵device:     HATPRO↵group:
   length: 5
  </code></pre>
  
  <p>Is it okay? And how to solve it?</p>
  
  <p>Thanks in advance :)</p>