updating regex to support new pattern syntax