Hi there team thank you in advance for your help. I scraped a page that has employee info, when i first scraped it, it looked like this:
Employee Profile
Employee Name
John Smith
Employee Email
john.smith@employee.com
As you can see there were several \n, then i did some research and found System.Text.RegularExpressions.Regex.Replace(employeeResults,“[\n]”,“”) and it removed the new lines but now it seems like its all in one big line becasue it looks like this now:
Employee Profile Employee Name John Smith Employee Email john.smith@employee.com
I want it to look like this:
Employee Profile
Employee Name John Smith
Employee Email john.smith@employee.com
Thank you so very much for your quick response, I really appreciate it. Yoichi this is awesome but
Im going to apologize because i was not clear. The information for each employee is going to be dynamic.
Meaning, some employees may have no email, some may have 1 or more so in this case the Employee Email
may or may not be present. Just like there may be some that have a website and others may not.
Therefore the label Employee Website may or may not be present. And all in all the number of labels for each employee will be different. This is my challenge. Thank you in advance!!
ok @Yoichi here is a an example and once again thank you for helping!
input:
Employee Profile Employee Name John Smith Employee Email johnsmith@email.com Employee Website www.johnsmith.com
Employee Profile Employee Name Jane Smith Employee Email janesmith@email.com janesmith1email.com Birthday jan 2, 2000
Employee Profile Employee Name Roger Smith
Expected Output:
Employee Profile
Employee Name John Smith
Employee Email johnsmith@email.com
Employee Website www.johnsmith.com
Employee Profile
Empployee Name Jane Smith
Employee Email janesmith@email.com
janesmith1email.com
Birthday jan 2, 2000
Employee Profile
Employee Name Roger Smith
See how each employee has different employee details. I get the details in one sweep by using the Get Value activity and was thinking of converting the string into an array but then the array has all the spaces in between from the original string, then if i remove them then it’s just all one long string. Can we make what you created dynamic?
Thank you!
I get the following message saying “Value” is not a member of MatchCollection. I googled and searched in the topics here in the fourm but couldn’t find a solution.