I'm trying to transliterate cyrillic to latin and replace all the remaining characters that aren't A-Z, a-z and 0-9 with _, then replace any resultant _ repeats (__, ___, ____ etc.) with a single _. Relevant part of the config file (all but 3 transliteration mappings are omitted):
This gives me this error:
string keys in translate table must be of length 1
I'm not sure where to go from here. I need to somehow be able to replace multiple character strings as well as character ranges. I assumed path-restrict strings follow the same syntax as the path-remove string. Is what I'm trying to do here possible?
I'm trying to transliterate cyrillic to latin and replace all the remaining characters that aren't A-Z, a-z and 0-9 with
_
, then replace any resultant_
repeats (__
,___
,____
etc.) with a single_
. Relevant part of the config file (all but 3 transliteration mappings are omitted):This gives me this error:
string keys in translate table must be of length 1
I'm not sure where to go from here. I need to somehow be able to replace multiple character strings as well as character ranges. I assumedpath-restrict
strings follow the same syntax as thepath-remove
string. Is what I'm trying to do here possible?