While there are multiple ways in which code I might write differs from the above, I would point out that /\.ms.com$/ misses an escape - you probably mean /\.ms\.com$/. An easy way to avoid missing escapes is to use \Q...\E - /\Q.ms.com\E$/.
In reply to Re^3: pattern matching question
by kennethk
in thread pattern matching question
by jrhaggie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |