String:
Person1(has(1, 1) has(2, 2)
has(3, 3)
had(4, 4) had(5, 5))
Person2(has(6, 6) had(7, 7))
I'd like to select all contents in has() for Person1, i.e ['1, 1', '2, 2', '3, 3'].
I tried: has\((\d, \d)\)(.|\s)*Person2 with Global pattern flags, but only 1, 1 was returned.