index()
含义:Return the starting position of one string within text
Format
index(text,string)
Parameters
Parameter | Definition |
text | text to be searched for the occurrence of string The text can be a text string enclosed in double quotation marks, or one or more PSL commands that produce text as output. |
string | one or more characters enclosed in double quotation marks that are to be located within text. |
Description
The index() function returns the position (indicated as an integer) in text at which string begins, or 0 if string does not occur in text. The fir