Perform one or more search-and-replace operations on a string where the 'search' value may be a regular expression, a string to parse as a regular expression, or a string to use as a literal search expression

  • Parameters

    • val: string

      The string to perform search-and-replace operations on

    • ops: SearchAndReplaceRegExp[]

      An array of search-and-replace criteria

    • Optionaloptions: string | LiteralSearchOptions = {}

      Options related to how to parse the string value for the literal search

    Returns string