/(1|12)(3?)$/ # use anchor to force the engine to match the entire expression