Before reading, please note that anything surrounded by 'm/ and /' is to be interpreted as regex. If you are not familiar with regex, or REGular EXpressions, please visit this CodeProject page. If you know a little, but don't know the syntax I'm using, visit the PerlDoc page for regex.