(regex_command_for): new function to use regex_command in already created viewer...