add regexp to terminal