/
matchText

matchText

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 2.5.15 / 2.6.7.

Syntax

matchText(input, regex)

Description

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

Parameters

Parameter name

Type

Required

Description

input

string

Yes

Specifies a character expression to match the regex against.

regex

string

Yes

Specifies a regular expression to match the specified string.

Return type

string


Related routines


Example

Example 1

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

Returns the string matched(the beginning of the string until will word.

Notes

For more information on regular expressions, see Oracle documentation.

See also


Related content

matchEnd
More like this
matchStart
More like this
indexOf
More like this
matches
More like this
contains
More like this
endsWith
More like this