RegExp.replace

Find regular expression matches in s[]. Replace those matches with a new string composed of format[] merged with the result of the matches. If global, replace all matches. Otherwise, replace first match.

  1. string replace(string s, string format)
    class RegExp
    string
    replace
    (
    string s
    ,
    string format
    )
  2. string replace(string format)

Return Value

Type: string

the new string

Meta