adding regex to main routine