Fix regex from #3898

refs #3898
Merge pull request #3906 from halfdan/patch-1

Fix regex from #3898