fixed borked regex from d6ed58a8d14101078af4c04ab77374942412c022, thanks Markus Lervik, refs #1418