regex in place and parsing content