Jase
0
Q:

java regex group not working

You need to call find() on the Matcher before you can call group() and related functions:

if (m.find()) {
    System.out.println("id = " + m.group(1));
}
0

New to Communities?

Join the community