Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

SUBSTITUTE

Substitutes all occurrences of the specified substring within a string.

Syntax

Parameters

STR (required)
String that contains substring to substitute.

WHAT (required)
Substring to replace within STRING_NAME. This parameter can contain escapable characters, such as %20 for a space. For example, to remove all spaces and replace them with blanks, use WHAT="%20" WITH="".

WITH (optional)
Replacement value of the substring. This parameter can contain escapable characters, such as %20 for a space. For example, to remove all spaces and replace them with blanks, use WHAT="%20" WITH="".

OUTSTR (required)
Resulting string after substitution.

Description

The SUBSTITUTE tag substitutes all occurrences of the specified substring within a string. The substring comparison is case-sensitive. For more information about variables, see the CS Developer's Guide.

errno

The value of errno is unchanged.

Example

This example replaces all occurrences of the string test within the string bar.

The browser displays:

See Also

SUBSTRING

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.