Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engineā„¢ 2.5.15 / 2.6.7.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

matchEnd(input, regex)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns the position where the match ends or -1 if it doesn't match.

Returns the position where the match ends or -1 if it doesn't match.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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

...

number

Related routines

Filter by label (Content by label)
showLabelsfalse
spacesSIL40
showSpacefalse
cqllabel = "regex" and space = "SIL"
labelsregex

Example

...

Type

Number

Example

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

Matches the string ending with "will" and will return 9 (the position of "l" character).

...

Note

For more information on regular expressions see Oracle documentation.

See also

Filter by label (Content by label)
showLabelsfalse
max10025
showSpacefalse
cqllabel = "string_routines" and space = currentSpace ( )
labelsstringarray_routines