Class preg_replace added. Noticed the dynamic class structure