replace

Old API for replacement, operation depends on flags of pattern re. With "g" flag it performs the equivalent of replaceAll otherwise it works the same as replaceFirst.

The use of this function is discouraged, please use replaceAll or replaceFirst explicitly.

  1. R replace(R input, RegEx re, const(C)[] format)
    R
    replace
    (
    alias scheme = match
    R
    C
    RegEx
    )
    (,
    RegEx re
    ,
    const(C)[] format
    )
    if (
    isRegexFor!(RegEx, R)
    )
  2. R replace(R input, RegEx re)

Meta