regular expression match text between quotes

JavaScript
(["'])(?:(?=(\\?))\2.)*?\1(["'])(?:(?=(\\?))\2.)*?\1

Source

Also in JavaScript: