0

Here is my Regular Expression:

(?i)(test){1,3}

Here are the strings I am using to test:

test test test test

I am using rubular.com to test.

My interpretation of my Regular Expression is

case insensitive, search for the word test without quotations a maximum of 3 times, but a minimum of 1.

On the line that outputs the results, my is the word "test" highlighted 4 times? Why doesn't it only highlight 3 times? I thought it would search 1 time minimum and 3 times maximum?

enter image description here

Wiktor Stribiżew
  • 484,719
  • 26
  • 302
  • 397
LunchBox
  • 2,179
  • 1
  • 18
  • 39

0 Answers0