I have strings like
S103FYUN031800644100
5S103LKAAN031801261400
32S103AKJA031804534600
From the above strings, I have to extract the bolded part from each of the above strings using regex, anyone with an idea on how to go about it?
So far I have tried this
String acc = "S103L5AN031801261400";
String regex = ".*S(.{3})";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(acc);
while(matcher.find()){
Logger.debug("Match:", matcher.group());
}
But still, I can't get it right.