Skip to end of banner
Go to start of banner

matchStart

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

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

Syntax

matchStart(input, regex)

Description

Returns the position where the match starts or -1 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

number


Related routines


Example

Example 1

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

Matches the string starting with will and will return 5(the position of w character).

Notes

For more information on regular expressions, see Oracle documentation.

See also


  • No labels