'string'.strip(chars)-like function that removes from the middle?
dp at admailinc.com
Mon Jun 16 18:58:06 CEST 2008
The strip() method of strings works from both ends towards the middle.
Is there a simple, built-in way to remove several characters from a
string no matter their location? (besides .replace() ;)
.strip --> 'www.example.com'.strip('cmowz.')
.??? --> --- 'www.example.com'.strip('cmowz.')
More information about the Python-list