Java regex with 10+ groups

I want to understand how Java will interpret

(one)(one)(one)(one)(one)(one)(one)(one)(one)(one)(two)\11

Will she try to match the first group and the literal 1at the end, or will she try to match the 11th group? How can I match the 11th group?

+4
source share
1 answer

Java regex will be:

"(one)(one)(one)(one)(one)(one)(one)(one)(one)(one)(two)\\11"

And he will correspond to the 11th captured group.

According to Javadoc:

Perl 1 9 ; , 9, , , , , , , , . . 1 9 , , , , .

+2

All Articles