original_docstring: 
      Return a copy of the value with all occurrences of a substring
      replaced with a new one. The first argument is the substring
      that should be replaced, the second is the replacement string.
      If the optional third argument ``count`` is given, only the first
      ``count`` occurrences are replaced:
  
      .. sourcecode:: jinja
  
          {{ "Hello World"|replace("Hello", "Goodbye") }}
              -> Goodbye World
  
          {{ "aaaaargh"|replace("a", "d'oh, ", 2) }}
              -> d'oh, d'oh, aaargh
      
docstring: Return a copy of the value with all occurrences of a substring
  replaced with a new one. The first argument is the substring
  that should be replaced, the second is the replacement string.
  
  : jinja
  
  
  
  
docstring_tokens: Return a copy of the value with all occurrences of a substring replaced with a new one . The first argument is the substring that should be replaced the second is the replacement string . : jinja
code: def do_replace(s, old, new, count=None):
      """
      Return a copy of the value with all occurrences of a substring
      replaced with a new one. The first argument is the substring
      that should be replaced, the second is the replacement string.
      If the optional third argument ``count`` is given, only the first
      ``count`` occurrences are replaced:
  
      .. sourcecode:: jinja
  
          {{ "Hello World"|replace("Hello", "Goodbye") }}
              -> Goodbye World
  
          {{ "aaaaargh"|replace("a", "d'oh, ", 2) }}
              -> d'oh, d'oh, aaargh
      """
      if not isinstance(old, basestring) or \
         not isinstance(new, basestring):
          raise FilterArgumentError('the replace filter requires '
                                    'string replacement arguments')
      if count is None:
          return s.replace(old, new)
      if not isinstance(count, (int, long)):
          raise FilterArgumentError('the count parameter of the '
                                     'replace filter requires '
                                     'an integer')
      return s.replace(old, new, count)
code_tokens: def do_replace ( s , old , new , count = None ) : if not isinstance ( old , basestring ) or not isinstance ( new , basestring ) : raise FilterArgumentError ( 'the replace filter requires ' 'string replacement arguments' ) if count is None : return s . replace ( old , new ) if not isinstance ( count , ( int , long ) ) : raise FilterArgumentError ( 'the count parameter of the ' 'replace filter requires ' 'an integer' ) return s . replace ( old , new , count )
short_docstring: Return a copy of the value with all occurrences of a substring
  replaced with a new one.
short_docstring_tokens: Return a copy of the value with all occurrences of a substring replaced with a new one .
comment: """
      Return a copy of the value with all occurrences of a substring
      replaced with a new one. The first argument is the substring
      that should be replaced, the second is the replacement string.
      If the optional third argument ``count`` is given, only the first
      ``count`` occurrences are replaced:
  
      .. sourcecode:: jinja
  
          {{ "Hello World"|replace("Hello", "Goodbye") }}
              -> Goodbye World
  
          {{ "aaaaargh"|replace("a", "d'oh, ", 2) }}
              -> d'oh, d'oh, aaargh
      """