accomplish the same thing with a single regex