ReplaceRegularExpression

Family: RegularExpression · One form

What it does

ReplaceRegularExpression takes regularExpression (an integer), text (a string) and replacement (a string), and answers a string.

Syntax

ReplaceRegularExpression(regularExpression integer, text string, replacement string) → string

Parameters

NameType
regularExpressioninteger
textstring
replacementstring

Every form returns

string

Example · generated

DO  Print(ReplaceRegularExpression(1, "hello", "value"))  Sync()LOOP

ReplaceRegularExpression is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

19 commands in RegularExpression