#NEWLINE# @ register . filter #NEWLINE# def twitterize( value ) : #NEWLINE# #INDENT# import re #NEWLINE# for user in re . findall ( '@(\\w+)' , value ) : #NEWLINE# #INDENT# value = value . replace ( ( '@%s' % user ) , ( '@<a href="http://twitter.com/%s">%s</a>' % ( value , user ) ) ) #NEWLINE# #UNINDENT# return value