JS matching multiple email address code

Time:2021-4-19
Copy codeThe code is as follows:
^([a-zA-Z0-9_-])[email protected]([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{1,4}){1,4})$ The key is (\. [a-za-z0-9 -] {1,4})

1 and 4 represent. This pattern needs to be matched at least several times and at most several times.