Untitled
Anonymous
plain_text
02/19/2021 6:45 PM
348 B
16
Indexable
public static void main(String[] args) {
String reg ="\\d(12)";
String txt = "123 21 1";
Matcher m = Pattern.compile(reg).matcher(txt);
while(m.find())
System.out.println(m.group()+" ");
}Editor is loading...