The OpenD Programming Language

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)
  2. R replace(R input, RegEx re)
    R
    replace
    (
    alias fun
    R
    RegEx
    )
    (,
    RegEx re
    )
    if (
    isRegexFor!(RegEx, R)
    )

Meta