XML Script logo
Command _filter
Attribute

times, a number

[optional] the number of instances to replace, where zero means all.

Attribute

replace, a string

[required] the output string to insert in place of the find string.

Attribute

find, a string

[required] the string to be identified.

Description

Searches through the contents of the tag, looking for instances of the key string, 'find', and replacing each one with the output string, 'replace'. The key is treated as a regular expression, whilst the replace parameter is used verbatim. If the 'times' attribute is set to a non-zero value, the tag will only replace that number of instances of the key tag. This tag is often nested, to allow, for instance, the replacement of both left and right angle brackets in a fragment of HTML.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited