- 1

How to generate Email Format for following text/string in C# using Regex?

I'm having trouble creating these Email formats and have also watched many Regex tutorials online but couldn't understand much! Suppose we have First Name and Last Name (John Doe) Input Box - Name Input Box - @domain.com Generate Email using Regex for example: - [SPACES] John [SPACES] Doe [SPACES] Exclude multiple spaces before, after and between users Name text/string john@domain.com doe@domain.com johndoe@domain.com doejohn@domain.com jdoe@domain.com doej@domain.com johnd@domain.com djohn@domain.com john.doe@domain.com doe.john@domain.com j.doe@domain.com d.john@domain.com john.d@domain.com doe.j@domain.com jd@domain.com dj@domain.com john-doe@domain.com doe-john@domain.com john_doe@domain.com doe_john@domain.com j_doe@domain.com d_john@domain.com doe_j@domain.com john_d@domain.com

7th Apr 2022, 6:15 AM
Jojan
1 ответ