# NFIND

> [HTML Version](nfind_sbr.htm)

**xcall NFIND, string, stpos, endpos, char, pos**

NFIND is similar to the INSTR() function, except with more sophistication. 

**Parameters**

_string  _([String](string.md))  \[in\]

string to be searched

_stpos_  ([Num](num.md))  \[in\]

starting position (first byte is number 1)

_endpos_  ([Num](num.md))  \[in\]

ending position to search in the string. Must be greater than or equal to _stpos_ or the result will always be zero. If larger than the length of the string, it will be treated as equal to the length.

_char_  ([String](string.md), 1)  \[in\]

the character to search for, with two special wildcards: "%" matches any non-space in the substring, and "/" matches non-numeric, non-alphabetic character.

_pos_  ([Num](num.md))  \[out\]

Returns the position of the matched character, or zero if there is no match within the specified substring.

**See Also**

•	[INSTR()](instr().md)

•	[.INSTRR()](instrr().md)