Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAA solution to last week’s challenge can be found here. Source: GIPHY
This challenge comes to us from @ramesh_neel - thank you for your contribution!
The input file has names of users connected by commas in a single field with random numbers to each name . Some of the names start with a lower case and some have middle name to them. [ names generated using a random name generator website ]
Create a set of email IDs (using @testemail.com as the domain) using a combination of first letter of the first name + last name of the user [even if they have a middle name ] and grouped into A-Z categories. Provide a count of the number of emails in each group.
Hint - In your output exclude any users without a valid name ( i.e, does not contain a number)
Regex is the answer. The question is pretty much irrelevant.