I have a string variable and want to extract a value from it.
String LB0001 = "LB0001";
String[] splitString = LB0001.split("LB(.*)");
What I was expecting is that splitString would contain two values, ["LB0001",["0001"]]. However the result is null. Why? I have checked the regex and seems to be correct.
I want to extract "0001". I can do it using other ways, but would like to know what I am doing wrong here.