If a match is found, a length-2 results vector is returned indicating where the matched sub-string starts and how long it is.
The template string can optionally contain a regular-expression similar to that used by the UNIX grep utility. If the enable regular expression option is selected, the template string can contain special wild card characters according to the following rules:
. A dot (period) matches any single character.
[abc] A group of characters enclosed in brackets matches any character within
the brackets. The brackets may contain ranges; for example, [a-z] matches any
letter from a through z (A through Z will also match if the ignore case option
is selected).
[^abc] A group of characters enclosed in brackets and beginning with the ^ character, matches any character not listed within the brackets. The brackets may contain ranges; for example, [^a-z] matches any character other than a lower case letter (upper case letters will also fail to match if the ignore case option is selected).
The character or any one of a bracketed group of characters preceding a character is matched zero or more times.
^ and $ match the beginning of a line (following a line-feed character, \n) or end-of-line (a carriage-return \r, a \n, or end of row), respectively.
< and > match the beginning or end of a word, respectively (a word consists of letters, numbers or underscore only).
A group may be identified by surrounding the group with \( and \).
The backslash, \, is the escape character; it undoes the special meanings of the above characters. Since the backslash is also ALI's escape character, you will need to put in \\ pairs to get one backslash within a quoted string.
Any other character matches only that character.