in reply to regex whitespace quantifers

Edit: Spoke too soon.

Seems you should turn your logic around, and match the comment:

/^\s*#/

Your regex should have a plus instead of a star after \s:

/^\s+[^#].*/

And apparently <strike> doesn't span code blocks.

-QM
--
Quantum Mechanics: The dreams stuff is made of