Clear Up
SharpKit Reference

JsString.replace Method (string, string)

Returns a copy of a string with text replaced using a regular expression or search string.

Namespace: SharpKit.JavaScript

Class: JsString

Syntax

public JsString replace(string searchText, string replaceText)

Parameters

searchText
Type: System.String
String object or literal that is converted to a string, and an exact search is made for the results; no attempt is made to convert the string into a regular expression.
replaceText
Type: System.String
Required. A String object or string literal containing the text to replace for every successful match of rgExp in stringObj. In JScript 5.5 or later, the replaceText argument can also be a function that returns the replacement text.

Return Value

Type: SharpKit.JavaScript.JsString
The result of the replace method is a copy of stringObj after the specified replacements have been made.
© Copyright 2005-2011 SharpKit. All rights reserved.