Method in text · Searchable coil-stdlib

Searchable::replace_all

fn replace_all<P: Pattern>(T hay, P pat, string with) -> string
Import
use text::{Searchable};
Source: src/text.hy

Returns hay with every non-overlapping match of pat replaced by with.

A regex pattern expands $1 / ${name} in with.

Parameters#

NameType
hayT
patP
withstring

Returns#

string

See also#

↑ ↓ navigate ↵ open