Kaya 0.5.2 reference for Regex::replace

List of functions and data types in Regex

Void replace(Regex keyre, String new, var String str, [ReplaceFlags] fl=createArray(1))

Arguments

Usage

Replace the first match (or all matches if fl contains Global) of key with new in the String str. new may contain back references into the pattern, $1, $2, etc, which stand for sub-matches.

Related

kaya@kayalang.org | Last modified 13 July 2009 | Supported by Durham CompSoc | Powered by Kaya