Fix regular expression - refs BT#8974