`(?:[-0-9$alpha]{0,17}[$alpha])?"` would be slightly better