import re
test = unicode("شدَد", encoding='utf-8')
test = test.replace(u"\u064e", "")
This is the code to remove one character. I would like to replace any of the following unicode characters: 0622, 0623, 0625 with 0627. This is for the Arabic language. I know how to do it in multiple lines but is there a way to do it in one?