fork download
  1. # -*- coding: utf-8 -*-
  2. import re
  3.  
  4. str = """
  5.  
  6.  
  7. 1. Clicca su "clone"
  8. 2. Incolla qui l'elenco da http://i...content-available-to-author-only...e.org/wiki/Speciale:Prefissi/Autore:
  9.  
  10.  
  11.  
  12. """
  13.  
  14.  
  15. print re.sub(r'\t|^', "|", str.strip(), 0, re.MULTILINE);
Success #stdin #stdout 0.02s 4676KB
stdin
Standard input is empty
stdout
|1. Clicca su "clone"
|          2. Incolla qui l'elenco da http://i...content-available-to-author-only...e.org/wiki/Speciale:Prefissi/Autore: