VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@POS

Windows Linux macOS

Syntax

@POS(<string1>,<string2>{,EXACT}{,<start_pos>})

Description

This function returns the starting character position of the first occurrence of <string1> in <string2>. The characters in the string are counted from 1 ([VDS6] unless the optional value <start_pos> is specified, in which case the search starts at this point). The value 0 is returned if either string is empty or <string1> does not occur in <string2>.

Note that by default the comparison is not case sensitive. An optional third argument EXACT may be used to specify a case-sensitive match

OK

Unchanged.

Example

%P = @pos(a,%A)
info Position of a in %A is: %P

See also