use a slightly more correct regex