Parsing a Text File

Parsing a Text File

Comments

  • [font=Calibri, sans-serif]I am trying to parse through a text file to extract different strings per line. Unfortunately, the file is not in CSV format. I have the rules to be able to dissect the file, but Im not sure what function I can use to read the text file itself line by line instead of an entire file. How would you break up the text into a manageable list of strings?[/font]

  • [font=Roboto]Hello,[/font]

    [font=Roboto]You can split the output of a Read Text File step into an array of separate lines with the Split String By New Line step. Once you have a list of lines, you can loop through them with a rule step or Regex Get Matches step to look for timestamps, names, GUIDs, etc.[/font]

    Heres an example flow demonstrating the Split String By New Line step:
    [img]att1[/img]
    [i]edited by james.hartzell@decisions.com on 1/14/2020[/i]
    [i]edited by james.hartzell@decisions.com on 1/14/2020[/i]

Sign In or Register to comment.