regex get text in quotes code example
Example 1: regex to match string not in between quotes
((?!\'[\w\s]*[\\']*[\w\s]*)foe(?![\w\s]*[\\']*[\w\s]*\'))
Example 2: regex to match string not in between quotes
('[^'\\]*(?:\\.[^'\\]*)*')|\bfoe\b
((?!\'[\w\s]*[\\']*[\w\s]*)foe(?![\w\s]*[\\']*[\w\s]*\'))
('[^'\\]*(?:\\.[^'\\]*)*')|\bfoe\b