Method in text · Pattern coil-stdlib

Pattern::expand

fn expand(P pat, string template) -> string
Import
use text::{Pattern};
Source: src/text.hy

Returns the replacement text for the match find_in just returned.

The default is template itself. A regex substitutes its captures ($1, ${name}).

Parameters#

NameType
patP
templatestring

Returns#

string

See also#

↑ ↓ navigate ↵ open