StrRight function (LotusScript® Language)

Searches a string from left to right for a pattern and returns a substring consisting of the characters in the string that follow the pattern.

Syntax

StrRight ( expression , pattern [, compMethod [, occurrences ]] )

Elements

expression

A String to search for the specified pattern.

pattern

The String pattern to search for.

compMethod

An Integer specifying which comparison to use.

Flag

Type of Comparison

0

Case Sensitive, Pitch Sensitive

1

Case Insensitive, Pitch Sensitive

4

Case Sensitive, Pitch Insensitive

5

Case Insensitive, Pitch Insensitive

occurrences

Long. Number of occurrences to match before returning the substring. Default = 1 or return on first occurrence found.

Extended example: array and String functions