[ create a new paste ] login | about

Link: http://codepad.org/8KmXy7aW    [ raw code | output | fork ]

Python, pasted on Jan 29:
1
2
3
4
5
import re

string = 'test string @string test test test stuff'

print re.sub('@\S* ','',string)


Output:
1
test string test test test stuff


Create a new paste based on this one


Comments: