2

I have a question about Matcher. If there are two capturing group that can be satisfied, which one will it choose? Let's say the pattern is (A|AB|B), if matcher is input with "AB", will it satisfy the A group then the B group or the AB group?

roblovelock
  • 1,971
  • 2
  • 23
  • 41
liu hp
  • 21
  • 1

0 Answers0