Skip to content
  • Mark OLESEN's avatar
    ENH: add string replaceAny() method · 14e2dbfb
    Mark OLESEN authored
    - takes a search string and a replacement character.
      The replacement character can also be a nul char ('\0'), which
      simply removes the characters.
    
      Possible uses:
    
      * Replace reserved characters
          str.replaceAny("<>:", '_');
    
      * Remove shell meta-characters or reserved filesystem characters
          str.replaceAny("*?<>{}[]:", '\0');
    14e2dbfb