Codes:
String etr = "fdsfsdaf\nTKT:1101234567890FSDFD";
the format is like ".+\nTKT:\d{13}.+".
how to get first 3 numberic after "\nTKT:" using String.replaceAll to implement? In this example, I want to get is "110". Exclude Matcher,Pattern and Other String method like indexOf(). Because I found the Regex include "?:","?<",but I have tried but failed,something like":
replaceAll(".+\nTKT:(?=[\\d{3}])\\d{10}.+","");
Thanks in advance.I just know some basic use for Regex.
110?