removed usage of preg_replace eval modifier

This removes usage of preg_replace's eval modifier