strstr

Searches for a substring within a string starting at the beginning of the array.

Syntax

strstr(string, substring)

Argument

string
The string to seach.
substring
The substring to search for.

Example

Templex Expression Results
{s = "The quick brown fox jumps over the lazy dog."}

{strstr(s, "x")}

18

Comments

Only the first match in the string is recognized; all others are ignored.