regex select between quotes code example
Example 1: regex to get items between quotes
(["'])(?:(?=(\\?))\2.)*?\1
Example 2: regex to match string not in between quotes
('[^'\\]*(?:\\.[^'\\]*)*')|\bfoe\b
(["'])(?:(?=(\\?))\2.)*?\1
('[^'\\]*(?:\\.[^'\\]*)*')|\bfoe\b