Update UI.prompt to allow Regexp matching