Need to get a particular text from the mail message

Input
The below users are
Quy-devqnx
Abc-yhj
Emp-get

Output needed
User 1-Quy
Id1-devqnx

User2-Abc
Id2-yhj

User3-Emp
Id3-get

Hi @Karthikeyan34 - Use Assign StringArray = split(“Quy-devqnx”,"-"). Then StringArray(0) gives you “Quy” and StringArray(1) gives you “devqnx”

Thanks,
AK

Thanks sir …But this input will change for each mail message so that I want to declare it generic…using regex but I just stuck in it can you please help me with some regex