Can someone help me create a regex expression for emails? This is what I have so far:
\S+@\S+\.\S+
I want to repeat this X times with a ;
separator. Any ideas on how to achieve this?
For example, the pattern should allow strings like:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b7e637a766b777e2a5b7e767a727735787476">[email protected]</a>
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b2d7cad3dfc2ded783f2d7dfd3dbde9cd1dddf">[email protected]</a>;<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f09588919d809c95c2b0959d91999cde939f9d">[email protected]</a>;<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3f5a475e524f535a0c7f5a525e5653115c5052">[email protected]</a>;<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="67021f060a170b025327020a060e0b4904080a">[email protected]</a>
But it shouldn't allow strings like:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5c39243d312c30396d1c39313d3530723f3331">[email protected]</a>;example2email.com;<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0e6b766f637e626b3d4e6b636f6762206d6163">[email protected]</a>;