arrayreplacevalue

Function arrayreplacevalue 

Source
pub fn arrayreplacevalue(
    text: &str,
    oldvalue: &str,
    newvalue: &str,
    sep: char,
) -> Result<String>
Expand description

Replaces alternating matches of oldvalue with newvalue.

Consecutive matches preserve every second element.