how to capture words in quotes in regular expression code example Example: regex to get items between quotes (["'])(?:(?=(\\?))\2.)*?\1