after

Purpose

Finds a text fragment from the argument till the end of the document.

Syntax

after(argument)

Arguments

The function accepts single argument.

The function also accepts the following optional named parameters:

  • scope:=text/line/sentence/paragraph limits the search to a fragment till the end of a text/line/sentence/paragraph. By default, scope:=text.

  • endpoint:=yes/no includes the argument in the result or excludes it. By default, endpoint:=no, i.e. the argument is excluded from the result.

  • allow_punct:=yes/no allows or prohibits punctuation between arguments (set to "no" by default).

  • trim_punct:=yes/no/left/right removes or leaves punctuation at the beginning or at the end of the interval (set to "yes" by default).

trim_punct:=no does not remove punctuation.

trim_punct:=left removes punctuation at the beginning of the interval.

trim_punct:=right removes punctuation at the end of the interval.

  • match:=first/last/shortest/longest matches the first/last/shortest/longest result.

The match parameter can be combined with scope:=sentence/text/paragraph/line:

  • match:=shortest, scope:=sentence matches the shortest result within a sentence.

  • match:=last, scope:=paragraph matches the last result within a paragraph.

  • match:=first, scope:=text matches the first result within a text.

Returned Value

Documents matching the query.

Examples

after(":", scope:=sentence) matches "the device was returned with the blade scratched and cracked" in the sentence "Evaluation summary: the device was returned with the blade scratched and cracked".

after(2000, scope:=line, endpoint:=yes) matches "2000 was a 53-week year" in the line "Fiscal 2000 was a 53-week year".

after(photo, scope:=sentence, trim_punct:=no) matches ": Business Wire)" in the sentence "(Photo: Business Wire)".

after(photo, scope:=sentence, trim_punct:=left) matches "Business Wire)" in the sentence "(Photo: Business Wire)".

after(photo, scope:=sentence, trim_punct:=right) matches ": Business Wire" in the sentence "(Photo: Business Wire)".