I have a line of data: first name, last name, mail1, mail2, mail3. I need to retrieve the line:
first name, last name, mail1
first name, last name, mail2
first name, last name, mail3
Tried different ways of combining, splitting lines. I can't find the right solution
Because e-mail adresses don't contain commas you can use regular expression search and replace. Search for three sequences of not-comma, separated by comma, at the end of the line. Also match whatever comes before these three sequences. Now, match group 1 is the first name and last name, and match group 2,3,4 are mail1, mail2 and mail3 respectively. Then you can replace by 1,2 [newline] 1,3 [newline] 1,4 [newline].
In regex syntax:
Search
Replace
Explanation of search pattern:
Explanation of replace pattern: