i want to retrieve a string which falls between two specified strings multiple times in a file
i tried this, but this doesnt work
/(?m)"String 1"!.*?"String2":/;
i want every thing that falls between “String 1” and “String 2”
Please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your input string is like this
this will work
$wantedis now “GIANT FISH”dah..multiline in a file…edit coming up
ok with multiline, assuming input of
this will get all the strings
@wanted has three entries
In the second regex, g for global finds all matches in the string