Follow-On Topics

Related Topics

# Adding New Rules

The New Rule dialog box is displayed when either the Add or Edit button is selected in the Main tab of the Parse Text dialog box and is used to create a rule for extracting text from an existing Variable and placing it into another specified Variable and also for controlling the position of the cursor within the text to work in conjunction with a following rule . The dialog box contains the following:
|  | Name — A name may be manually entered
|  | Type — Provides the following options for selection:
|  | Extract between [C1] and [C2] — Extracts the text between the first occurrences of C1 and C2 in that order
|  | Extract between word [N1] and word [N2] — Extract the text between the first occurrences of word N1 and word N2 in that order
| Click the image to view full size.

|  | Extract lines [N1] to [N2] — Extract the lines N1 to N2 where line N1 is the current line

|  | Extract after [C] to the end of line — Extract the text after the first occurrence of C to the end of the same line

|  | Extract after word [N] to the end of line — Extract the text after word N to the end of the same line

|  | Extract word [N] — Extracts word N

|  | Extract after word [C] — Extract the text after word [C]

|  | Extract after word [N] — Extract the text after word [N]

|  | Extract before word [C] — Extract the text before word [C]

|  | Extract before word [N] — Extract the text before word [N]

|  | Move to start — Move the pointer to the start of the data

|  | Move to start of line [N] — Move the pointer to the start of Line [N]

|  | Move to end of Word [C] — Move to the pointer to the end of Word [C]

|  | Move to start of Word [C] — Move to the pointer to the start of Word [C]

|  | Move to end of Word [N] — Move the pointer to the end of Word [N]

|  | Move to start of Word [N] — Move the pointer to the start of Word [N]

|  | Move to end of character [N] — Move the pointer to the end of character [N]

|  | Move forward [N] characters — Move the pointer to the end of character [N]

|  | Move back [N] characters — Move the pointer to the start of character [N]

|  | Description — Displays a summary of the action that is taken for the Rule type selected above

|  | Parameters — Allows the insertion of values for parameters based on the Rule type selected

|  | Variable output — Choose the variable to save the selected text to

|  | Remove leading spaces — Removes any spaces included at the beginning of the extracted text

|  | Remove trailing spaces — Removes any spaces included at the end of the extracted text

|  | Remove the CR LF — Removes any carriage returns of line characters that may be included in the extracted text

Copyright © 2018 Quadrant Software B.V. All rights reserved.