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.4K All Categories
- 84 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 111 Rules
- 275 Administration
- 214 Portal
- 498 General Q & A
- 716 Forms
- 349 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 188 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 70 Repository
- 231 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions