in reply to Long regexp un multiple lines

perldoc perlre, specifically for the /x modifier (and you might check out the parts on quantifiers and on character classes such as [:xdigit:] while you're there).