in reply to Re^2: Reg Ex with quotesin thread Reg Ex with quotes
That is what I would do, but doesn't match the inferred intent of OP's code. (Mind you, my version doesn't do the checking that the original code did either. :) )