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) → stringParameters
| Name | Type |
|---|---|
| regularExpression | integer |
| text | string |
| replacement | string |
Every form returns
string
Example · generated
DO Print(ReplaceRegularExpression(1, "hello", "value")) Sync()LOOPReplaceRegularExpression 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.