I want to build a single script that fetches a format that stands in a database. This format tells the script how to build an username. We have multiple customers, and every customer uses a different format for their usernames for example:
- (first letter givenname).(last name without spaces) = f.lastnamewithoutspaces
- (first name without spaces)(last name without spaces) = firstnamelastname
you get the idea. Does anyone know if you can build this into a single regular expression? I looked into it but it blew my mind and find it too difficult to wrap my head around since most of my finds were to validate if something was a username.
Hope you guys can help me out!