Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript String Object replace Method

Replaces the text found by a regular expression with other text.

Syntax: JScript String Object replace Method

stringObj.match(rgExp, replaceText)

Arguments: JScript String Object replace Method

stringObj

The name of a String object. Required.

rgExp

A Regular Expression object describing what to search for. Required.

replaceText

A String object or literal containing the text to replace for every successful match of rgExp in stringObj.

Remarks: JScript String Object replace Method

The result of the replace method is a copy of stringObj after all replacements have been made.

The method updates the contents of the RegExp object.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.