I need an regular expression which matches the following:
'"test foo bar", "test"' => no match
'"test, foo bar", "test"' => "test, foo bar"
'"test, foo bar"' => "test, foo bar"
'"test foo bar"' => no match
'"test", "test, foo"' => "test, foo"
'"test", ","' => no match
'"test", 0, 0, "foo"' => no match
the regex should match any strings which contains the comma
I started with \".+?\"
but it selects until the next string, which is not applicable for me. Thank you
Edit: thank you, i figured it out with all of your help \"[\w]+?,.+?\"