m{^\s*#}
The \s means a white-space character and the * iterator means zero or more of whatever preceded it. So the above pattern means at the beginning of the string (your line in this context) match zero or more white-space characters followed by a hash.
I hope this is of use.
Cheers,
JohnGG
In reply to Re: File read and strip
by johngg
in thread File read and strip
by Andrew_Levenson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |