I want to take string between ", but the regular expression matches too long.
The code is like below:
NSRegularExpression *regexp =
[NSRegularExpression regularExpressionWithPattern:
@"\".?\"" options:0 error:&error];
And the string matches is below:
what_i_want" "what_I_do_not_want
You know, I want to take only:
what_i_want
Thank you for help.
Use the following
@"\"[^\"]+\""instead.