Guest User

Untitled

a guest
Jan 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import re
  2.  
  3. string = 'potere <negato> sperare <negato> di meglio'
  4. re.sub('<w+>','w+',string)
  5.  
  6. error: bad escape w at position 0
  7.  
  8. re.sub('<w+>','\w+',string)
  9.  
  10. error: bad escape w at position 0
  11.  
  12. string = 'potere <negato> sperare <negato> di meglio'
  13. re.sub('<w+>','\w+',string)
  14.  
  15. 'potere \w+ sperare \w+ di megli'
Add Comment
Please, Sign In to add comment