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
  • 15,330
  • 17
  • 106
  • 173
Jon Cage
  • 34,978
  • 34
  • 128
  • 209

0 Answers0