Test, validate and match regular expressions
Matches any text enclosed in single quotes, capturing the opening quote, the inner content (non-greedy), and the closing quote. Useful for extracting or replacing quoted strings in text, such as attributes in code or dialogue in prose. The 'gi' flags make it global and case-insensitive, though the quotes themselves are non-alphabetic.