Master of death, why $regml(3)? Also, you didn't construct your regex as such: /(matchstringhere)/, so your code won't work.