Fix regex for registration.