I am running below 2 lines in Java (Java 8):

```
String dirTree = "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext";
String[] result = dirTree.split("\\n\\t[^\\t]");

```

Result seen - result: 

```
["dir", "ubdir1", "ubdir2\n\t\tfile.ext"]

```

I was expecting - result: 

```
["dir", "subdir1", "subdir2\n\t\tfile.ext"]

```

Can someone please explain why the first character of the strings in result are missing(Eg - "ubdir1" instead of "subdir1") ?