pub fn replace(val: &str, args: Vec<&str>) -> Result<String, TransformerError>
Expand description

Replace text in the string, by another text

    assert_eq!(replace("nata", vec!["a", "o"])?, "noto");
    assert_eq!(replace("hi there fellow", vec![" ", "-"])?, "hi-there-fellow");