class_docstr: Extending str functionality to apply regex rules
  
  https://stackoverflow.com/questions/4698493/can-i-add-custom-methods-attributes-to-built-in-python-types
  
  Parameters
  ----------
  str : str
      string content
  
  Returns
  -------
  str
      input as it is if rule pattern doesnt match
      else replacing found pattern with replacement chars
class_docstr_tok: ["Extending","str","functionality","to","apply","regex","rules","https",":","\/\/stackoverflow.com\/questions\/4698493\/can-i-add-custom-methods-attributes-to-built-in-python-types","Parameters","--","--","--","--","--","str",":","str","string","content","Returns","--","--","--","-","str","input","as","it","is","if","rule","pattern","doesnt","match","else","replacing","found","pattern","with","replacement","chars"]
code: def apply(self, *rules):
      for each_r in rules:
          self = re.sub(each_r.pattern, each_r.replacement, self)
      return self
  
file_path: pySBD/pysbd/utils.py
imports: import re
  import pysbd
label_desc: Use image node_id 1 for calling the Text obj's underlying member method code with example usage: obj.apply() and returns: self