ungreedy preg replace for finding classes