in reply to regex whitespace quantifers
Seems you should turn your logic around, and match the comment:
/^\s*#/
Your regex should have a plus instead of a star after \s:
And apparently <strike> doesn't span code blocks.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|