Quote:
Originally Posted by kovidgoyal
Using the Find expression
\u200c (regex mode)
works for me.
|
Ah. Of course. Thank you.
For anyone who's interested, the following regex-function replaces all matched characters with numeric entities:
Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
result = ''
for c in match.group():
result += '&#%d;' % ord(c)
return result
Search for e.g. (\u200c|\u00ad) and "replace all" using this function.