Thanks. I missed that copying from the PC that has perl that I tested this on to this one.
In reply to Re^4: regex issue by ExReg in thread regex issue by Anonymous Monk