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 | matchText(input, regex) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the text matched or empty string if it doesn't match. |
Returns the text matched or empty string 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
...
Type
string
Related routines
Filter by label (Content by label) |
---|
showLabels | false |
---|
spaces | SIL40 |
---|
showSpace | false |
---|
cql | label = "regex" and space = "SIL" |
---|
labels | regex |
---|
|
Example
...
String
Example
Code Block |
---|
wret = matchText("This will return ?", ".*will");
print("Return " + wret); |
Returns the string matched (at the beginning of the string until will until "will" word.
...
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 10025 |
---|
showSpace | false |
---|
cql | label = "string_routines" and space = currentSpace ( ) |
---|
labels | stringarray_routines |
---|
|