I am new in regular expression and I want to know if following is possible to done with it.
I want to match string with provided positions.
For example
$input = 'text example'.
I want to match the letters from 4th to 7th, that is
"t ex".
In this case, how can I write the regex?
I tried below
'/^.{4,7}.*$/e'
its with e filter because I want to use function of it, but this way is not the result I want...
Thank you for your help!