regex rewrited