> re.split(':|;|px', "width:150px;height:50px;float:right") You could recognize that the delimiter you want to strip is in fact px; and not px in and of itself. So, try: re.split(':|px;', "width:150px;height:50px;float:right") Emile
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル