in reply to regex within an input file

When debugging regexes you just use re 'debug'; to see what the regex engine is doing.