This is my string
hello my friend, i want to say hello to all of you
I am using following regex to match hello to all of you But for some reason, it is matching entire string.
hello(.*?)you
I think because I am using wild card match. I want start to be hello and end to be you and get anything between that, but not the entire string.
My regex completely ignoring inner hello word and giving me broad match. I want it to be narrow.