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]
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions