Index: trunk/tools/ds9_regions_mask.pl
===================================================================
--- trunk/tools/ds9_regions_mask.pl	(revision 20601)
+++ trunk/tools/ds9_regions_mask.pl	(revision 20602)
@@ -21,5 +21,5 @@
 open $output, "> $masks";
 while (<$input>) {
-    s/\#.*//;                   # Comments
+    s/^\#.*//;                   # Comments
     next unless /\S+/;          # Blank line
     if (/^global.*color=(\S+)/) {
