regex to identify prompt updated