Save current regex to local storage