regex quoted text ending with code example Example: regular expression match text between quotes (["'])(?:(?=(\\?))\2.)*?\1