matchText

Description

Returns the text matched or empty string if it doesn't match.

Parameters

Return Type

String

Example

wret = matchText("This will return ?", ".*will"); print("Return " + wret);

Returns the string matched at the beginning of the string until "will" word.

For more information on regular expressions, see Oracle documentation.

See also