Clear Up
SharpKit Reference

JsString.search Method (string)

Returns the position of the first substring match in a regular expression search.

Namespace: SharpKit.JavaScript

Class: JsString

Syntax

public JsNumber search(string searchText)

Parameters

searchText
Type: System.String
The String object or string literal on which to perform the search.

Return Value

Type: SharpKit.JavaScript.JsNumber
The search method indicates if a match is present or not. If a match is found, the search method returns an integer value that indicates the offset from the beginning of the string where the match occurred. If no match is found, it returns -1.
© Copyright 2005-2011 SharpKit. All rights reserved.