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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions