def strip_tatweel(text):
"""
Strip tatweel from a text and return a result text.
Example:
>>> text=u"????????????"
>>> strip_tatweel(text)
???????
@param text: arabic text.
@type text: unicode.
@return: return a striped text.
@rtype: unicode.
"""
return re.sub(u'[%s]' % arabconst.TATWEEL, '', text)
#--------------------------------------
评论列表
文章目录