I have a question about regex. I don't know why I cannot do the following.
Sample sentence:
"This is a test string with five t's"
The regex I use:
^(.*?(?=t)){3}
I want the regex to match the following.
"This is a test s"
But it doesn't work, does anyone know why?