You can do both, since you're making regex more permissive — there will be no invalid names in the db, so it's ok to do it both ways.
You can do both, since you're making regex more permissive — there will be no invalid names in the db, so it's ok to do it both ways.