class_docstr: Series.str namespace.
class_docstr_tok: ["Series.str","namespace","."]
docstr: Replace all matching regex/literal substrings with a new string value.
  
  Parameters
  ----------
  pattern
      A valid regular expression pattern, compatible with the `regex crate
      <https://docs.rs/regex/latest/regex/>`_.
  value
      String that will replace the matches.
  literal
      Treat pattern as a literal string.
  
  See Also
  --------
  replace : Replace first matching regex/literal substring.
  
  Examples
  --------
  >>> df = pl.Series(["abcabc", "123a123"])
  >>> df.str.replace_all("a", "-")
  shape: (2,)
  Series: '' [str]
  [
      "-bc-bc"
      "123-123"
  ]
docstr_tok: ["Replace","all","matching","regex\/literal","substrings","with","a","new","string","value",".","Parameters","--","--","--","--","--","pattern","A","valid","regular","expression","pattern",",","compatible","with","the","`","regex","crate","<","https",":","\/\/docs.rs\/regex\/latest\/regex\/",">","`","_",".","value","String","that","will","replace","the","matches",".","literal","Treat","pattern","as","a","literal","string",".","See","Also","--","--","--","--","replace",":","Replace","first","matching","regex\/literal","substring",".","Examples","--","--","--","--",">",">",">","df","=","pl.Series","(","[","``","abcabc","''",",","``","123a123","''","]",")",">",">",">","df.str.replace_all","(","``","a","''",",","``","-","''",")","shape",":","(","2",",",")","Series",":","``","[","str","]","[","``","-bc-bc","''","``","123-123","''","]"]
code: def replace_all(
      self, pattern: str, value: str, *, literal: bool = False
  ) -> Series:
      """
      Replace all matching regex/literal substrings with a new string value.
  
      Parameters
      ----------
      pattern
          A valid regular expression pattern, compatible with the `regex crate
          <https://docs.rs/regex/latest/regex/>`_.
      value
          String that will replace the matches.
      literal
          Treat pattern as a literal string.
  
      See Also
      --------
      replace : Replace first matching regex/literal substring.
  
      Examples
      --------
      >>> df = pl.Series(["abcabc", "123a123"])
      >>> df.str.replace_all("a", "-")
      shape: (2,)
      Series: '' [str]
      [
          "-bc-bc"
          "123-123"
      ]
  
      """
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.series.utils import expr_dispatch
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter
label_desc: Use image node_id 25 for calling the StringNameSpace obj's underlying member method code with example usage: obj.replace_all(pattern, value) without return types