Actually I was trying to match preg_replace style. which is not particularly suited for regexp class. ###>Actually I was trying to match preg_replace style. which is not particularly suited for regexp class.