Fixed #2052869: Must save URL pattern twice for it to save

When changing display formats, the form is updated via AJAX. When this
happens the form ID changes and so the updated form did not have the
VMP submit handler. This uses preg_match to detect the form ID to get
around this.