time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (965B)


      1 
      2 {{alias}}( str )
      3     Removes punctuation characters from a `string`.
      4 
      5     The function removes the following characters:
      6 
      7     - Apostrophe: `
      8     - Braces : { }
      9     - Brackets: [ ]
     10     - Colon: :
     11     - Comma: ,
     12     - Exclamation Mark: !
     13     - Fraction Slash: /
     14     - Guillemets: < >
     15     - Parentheses: ( )
     16     - Period: .
     17     - Semicolon: ;
     18     - Tilde: ~
     19     - Vertical Bar: |
     20     - Question Mark: ?
     21     - Quotation Marks: ' "
     22 
     23     Parameters
     24     ----------
     25     str: string
     26         Input string.
     27 
     28     Returns
     29     -------
     30     out: string
     31         String with punctuation characters removed.
     32 
     33     Examples
     34     --------
     35     > var str = 'Sun Tzu said: "A leader leads by example not by force."';
     36     > var out = {{alias}}( str )
     37     'Sun Tzu said A leader leads by example not by force'
     38 
     39     > str = 'This function removes these characters: `{}[]:,!/<>().;~|?\'"';
     40     > out = {{alias}}( str )
     41     'This function removes these characters '
     42 
     43     See Also
     44     --------
     45