http://qs321.pair.com?node_id=11120143


in reply to Simple way to skip spaces and # comments

Treat "#" and the following characters as a single whitespace character.

/\G (?: \s | \# .* )++ /xgc

More efficient?

/\G (?: \s++ | \# .*+ )++ /xgc