Multi-line test string:
dkdkdkdk dkdkdkdk dkdkdkd dkdkdkd "hello" dkdkdkdkdk dkdkdk "goodbye.hello" dkdkdkd kdkdkd kdkdkdk "hello.goodbye.hello" dddd "test" ssss "http:xy.f/z/z" "" "." "http:/dkdkd/dkdkdk/dkdkdkdkdkdk.g"
I want to match each line containing " hello "
This corresponds to each quoted line.
\"(.+?)\"
This corresponds to each quoted string containing hello in it.
\"(.*?)hello(.*?)\"
But this does not correspond to every quoted line that does NOT contain greetings.
\"(.*?)(?!hello)(.*?)\"
Thanks for any help!
source share