What does this expression return?
'"a" and "b"'.match(/".*"/)[0]
- '"a" and "b"'
- '"a"'
- ['"a"', '"b"']
- 'a" and "b'
.* is greedy: it runs to the end and backtracks only as far as the LAST quote.'"a" and "b"'.match(/".*"/)[0]
.* is greedy: it runs to the end and backtracks only as far as the LAST quote.