JSREF
JavaScript RegExp Group (x|y)
A global search for any of the alternatives (red|green):