Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- string = 'potere <negato> sperare <negato> di meglio'
- re.sub('<w+>','w+',string)
- error: bad escape w at position 0
- re.sub('<w+>','\w+',string)
- error: bad escape w at position 0
- string = 'potere <negato> sperare <negato> di meglio'
- re.sub('<w+>','\w+',string)
- 'potere \w+ sperare \w+ di megli'
Add Comment
Please, Sign In to add comment