我有一个带类型的字符串,预期的结果是
input = "[Peter Jane Minesotta <pet.j.minn@mnu.al.edu>]"
输出
Fname = "Peter"
SecondAndRemainingNames = "Jane Minesotta"
email = "pet.j.minn@mnu.al.edu"
input = "[Peter <pet.j.minn@mnu.al.edu>]"
输出
Fname = "Peter"
SecondAndRemainingNames = ""
email = "pet.j.minn@mnu.al.edu
我需要使用正则表达式提取
我试过
input.match(/\w/gim)
临摹微笑
蓝山帝景
Smart猫小萌
梵蒂冈之花
相关分类