BEFORE and AFTER Phrases (All Formats)
No more than one BEFORE phrase and one AFTER phrase can be specified for
any one ALL, LEADING, CHARACTERS, FIRST or CONVERTING phrase. When these phrases
are specified, the preceding rules for counting and replacing are modified.
- identifier-4, literal-2
- These are not counted or replaced. However, counting and/or replacing of the inspected item is bounded by the presence of the identifiers and literals. If the delimiter (identifier-4 or literal-2) is a figurative constant, it is considered to be 1 character in length.
When BEFORE is specified, counting and/or replacing of the inspected item begins at the leftmost character and continues until the first occurrence of the delimiter is encountered. If no delimiter is present in the inspected item, counting and/or replacing continues toward the rightmost character.
When AFTER is specified, counting and/or replacing of the inspected item begins with the first character to the right of the delimiter and continues toward the rightmost character in the inspected item. If no delimiter is present in the inspected item, no counting or replacement takes place.