Clear Up
SharpKit Reference

JsString.replace Method (JsRegExp, string)

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

Namespace: SharpKit.JavaScript

Class: JsString


public JsString replace(JsRegExp regExp, string replaceText)


Type: SharpKit.JavaScript.JsRegExp
An instance of a Regular Expression object containing the regular expression pattern and applicable flags.
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.