|
|
string search type |
example |
result |
| 0 |
case insensitive, default |
INDEX("aA bB cC", "A") |
1 |
| 1 |
case sensitive |
INDEX("aA bB cC", "A", 1) |
2 |
| 2 |
word |
INDEX("aA bB cC", "A", 2) |
0 |
| 4 |
|
INDEX("aA bB cC", "a", 4) |
2 |
| 8 |
(1st character of string that is also in substring) |
INDEX("aA bB cC", "cbx", 8) |
4 |
| 16 |
include trailing blanks |
INDEX("a a a", "a ", 16) |
3 |
| 32 |
best match |
INDEX("aA bB cCe"," bC",32) |
3 |
| 64 |
(1st character of string that is not in substring) |
INDEX("aA bB cCe"," ab",64) |
7 |
| 128 |
|
- INDEX(string, "gr.y", 128)
|
gray or grey |
| 256 |
|
- INDEX("aA bB cC", "c", 256)
|
2 |
|
|
option +128 in INDEX and EDIT |
check in MatrixExplorer
and script search |
| . |
any single character |
"gr.y" matches gray or grey |
| ? |
preceding token is optional |
"colo?ur" matches color or colour |
| * |
match preceding token zero or more times |
"fo*l" matches fly, fold, fool |
| + |
match preceding token once or more |
"fo+l" matches fold, fool |
| ^ |
Beginning of line |
"^a" matches lines beginning with a |
| $ |
End of line |
"z$" matches lines ending with z |
| [ |
Open set of single characters to be matched |
| |
[aeio]n |
matches an, end, in, on |
| |
[^xyz] |
do not match (x or y or z) |
| |
[A-Z] |
a single character in the range A and Z (inclusive) |
| |
[0-9A-F] |
a single hex digit (case sensitive with Option=1) |
| ] |
Close set of single characters to be matched |
| | |
few|all|none |
matches "few" or "all" or "none" |
| \ |
escape |
"\^" matches "^" instead of "Beginning of line" |
| |
\a |
alfabetic digit |
| |
\d |
numeric digit |
| |
\s |
space, tab, carriage return, or line feed |
| |
\w |
alfanumeric digit |
| |
\z |
hexadecimal digit |