Question

2
Replies
1441
Views
Manash_LSA Member since 2008 48 posts
Phalanx Consultancy Limited
Posted: 2 years ago
Last activity: 1 year 3 months ago
Closed

Regex for email validation

Hi,

I am using the below regex for email validation in an edit validate rule.

String emailid = "[A-Za-z0-9_&-'$&]+(\\.[A-Za-z0-9_&-'$]+)*@[A-Za-z0-9_&-'$]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})";

It is working for _ and - but not for $&'. Can someone explain how to correct this behaviour?

Regards,

Manash

***Updated by moderator: Lochan to update platform capability***

Case Management
Moderation Team has archived post
Share this page LinkedIn