Info |
---|
|
This routine is available starting with SIL Engineā¢ 2.5.15 / 2.6.7. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | matchEnd(input, regex) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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) |
---|
showLabels | false |
---|
spaces | SIL40 |
---|
showSpace | false |
---|
cql | label = "regex" and space = "SIL" |
---|
labels | regex |
---|
|
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).
...
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 10025 |
---|
showSpace | false |
---|
cql | label = "string_routines" and space = currentSpace ( ) |
---|
labels | stringarray_routines |
---|
|