This post is an update to this one : [get specific character in a string with regex and remove unused zero](https://stackoverflow.com/questions/65254409/get-specific-character-in-a-string-with-regex-and-remove-unused-zero)

In the first place, i wanted to remove with an regular expression the unused zero in the last match.

I found that the regular expression is a bit overkill for what i need.

---

Here is what i would like now,

I would like to use `split()` method

to get from this :

```
String myString = "2020-LI50532-3329-00100"

```

this :

```
String data1 = "2020"
String data2 = "LI50532"
String data3 = "3329"
String data4 = "00100"

```

So then i can remove from the LAST `data` the unused Zero

> 
> to convert "00100" in "100"
> 
> 
> 

And then concatenate all the data to get this

```
"2020-LI50532-3329-100"

```

Im not familiar with the split method, if anyone can enlight me about this ^^