in reply to Regexp experts, come to rescue!

Maybe something got botched up in the value assigned to the scalar '$MType'. Post more of your code and maybe we'll catch a mistake some where preceding this regex. - kel -