Skip to content

replace

Category: String

Returns the input string with all occurrences of the search string replaced with the replacement string

  • Return type: string
  • Parameters:
    • search string — String to search for
    • replace string — Replacement string
'Hello World'.replace('World', 'Universe')
Patient.name.family.replace('Mc', 'Mac')