search

The search method searches a string for a specified value, or regular expression, and returns the position of the match.

 

Syntax

System.Array search( searchvalue);

 

Parameters

searchvalue

A regular expression or string.

 

Return Value

Returns a number which represents the position of the first occurrence, otherwise, -1.

 

Remarks

Member of string.

 

Example