Good day! I have the following pattern:
/(?=test)(?=.*la).{8}/
to match this:
testlaoo
And it is working correctly. But I can't understand why do I have to use .* here
Good day! I have the following pattern:
/(?=test)(?=.*la).{8}/
to match this:
testlaoo
And it is working correctly. But I can't understand why do I have to use .* here
You know, there are that little stupid questions without which you can't go ahead. It was one of them. So, you need .* before la to be able to match la anywhere not just at start.