| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: SUBST-IN-STRING

Section: String Operators

Synopsis:

`<subst-in-string STRING REGEXP REPLACEMENT [REGEXP] [REPLACEMENT] ...>`

Description:

Replaces all occurrences of REGEXP with REPLACEMENT in STRING.

REGEXP can be any regular expression allowed by POSIX extended regular expression matching.

       <set-var foo="This is a list">
       <subst-in-string <get-var foo> "is" "HELLO">
            --> "ThHELLO HELLO a lHELLOt"<p>
       <subst-in-string "abc" "([a-z])" "\\1 "> --> "a b c "

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com