Another way would be to use a non-greedy expression in the capture, /"(.*?)"/
Uhm, not quite. You'd have to use /"(.*?)"/s. Furthermore, if you would embed the regex in a larger one, "[^"*]" would never match a double quote inside the other ones, while ".*?" may.
Abigail
In reply to Re: Pattern Matching Question
by Abigail-II
in thread Pattern Matching Question
by Joy Conner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |