'RegEx for string in typescript [closed]

Hi I am working in angular 8 and I have strings with pattern like "Cho Wan ([email protected] - THV)". I want to write a regular expression that splits this string into an array like below:

arr[0]= "Ilsa"

arr[1]= "Cho"

arr[2]= "[email protected]"

arr[3] = "TTT"

How can I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source