Minor regex validation fix