Ruby & Perl use /x to ignore whitespace & comments like this.
eg.
/\d+ # some comment
\w # another comment
/xeg.
/\d+ # some comment
\w # another comment
/xNo comments yet.