find

Finds a matching substring in a given string.

string
find
(
string s
,
string pattern
)

Parameters

s string

The string to find a pattern in.

pattern string

The pattern to look for.

Return Value

Type: string

The matching string, if one was found, or null otherwise.

Meta