-5

Can anybody share Regular Expression below example:

minimum 3 alphanumeric and then add only one '@' then again minimum 3 alphanumeric

example: rohit@tcs or himansu@infosys

user2686713
  • 11
  • 1
  • 6

1 Answers1

0

Here is a pattern that matches:

/\w{3,}@{1}\w{3,}$/
Dream_Cap
  • 2,292
  • 2
  • 18
  • 30