When reading the code I don't really care that much about the actual regular expression, but rather what it's supposed to match. Nothing beats `QUOTED_STRING.match value`, or `value.match QUOTED_STRING`. You can even drop the `match` assignment and use `$~` instead. In a constant, the regex will also only get allocated once, and not for every iteration of the loop.