Index

# Replacex

## Format

replacex ( haystack , regex , tostring )

## Description

Return a new string where all occurrences of substrings matching the regular expression regex are replaced by tostring in the string haystack.

## Example

    a$ = "We all live in a yellow submarine, yellow submarine, yellow submarine."
    print Replacex(a$,"ye.*ow","blue")
    print Replacex(a$, "[wW]e", "Beatles")

will display

    We all live in a blue submarine.
    Beatles all live in a yellow submarine, yellow submarine, yellow submarine.

## New to Version

0.9.6.56