Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Parsing strategies

Log in to subscribe to topics and get notified when content changes.

Parsing strategies

In discovery patterns, you can use parsing strategies to extract text from any text file and to specify a variable to store the extracted content.

Parsing strategy Description
File parsing strategy (except vertical) Retrieve text from various file types including:
  • .ora file (used by various Oracle products)
  • .properties file (common for Java)
  • xml file
  • .ini file
For more information, see Parse text from .ora, .properties, .xml, or .ini file.
Vertical file parsing strategy Retrieve text from a structured text file where each set of data spans multiple lines
Keyword, command, and positional type parsing strategy
  • Retrieve text directly following a specific keyword
  • Retrieve the value of a command-line parameter using Java-style parameters
  • Retrieve the value of a command-line parameter using standard Unix/Windows parameters
  • Retrieve text specified by its position from the end of the line
  • Retrieve text specified by its position from the beginning of the line
Regular expression parsing strategy Retrieve text specified by a regular expression
Delimited text parsing strategy Retrieve text specified by delimiters and position within the line (the most common way to retrieve text from generic text files)
Feedback