0

Test data:

TESTING: FIRST SECOND THIRD TESTING: TESTING: ANY NUMBER OF WHOLE WORDS flibble:

...should give the following:

  • List: [FIRST,SECOND,THIRD]
  • List: Empty
  • List: [ANY,NUMBER,OF,WHOLE,WORDS]
  • No match

I thought something like this might work:

TESTING:(\s(\w+))*

...but I'm unsure how to make those extra words capture repeatedly. My attempt above doesn't seem to work.

Adrian
  • 16,233
  • 18
  • 112
  • 180
Jon Cage
  • 36,366
  • 38
  • 137
  • 215

0 Answers0