Clear Up
SharpKit Reference

JsString.search Method (JsRegExp)

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

Namespace: SharpKit.JavaScript

Class: JsString

Syntax

public JsNumber search(JsRegExp regExp)

Parameters

regExp
Type: SharpKit.JavaScript.JsRegExp
An instance of a Regular Expression object containing the regular expression pattern and applicable flags.

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.