Thread:User talk:CodeCat/Characters to strip/reply (26)

I added your code, but I made some changes to it as well. I added back the shorthand names for some common diacritics, to make it easier to see which characters the codes actually represent. I also removed "strip" and converted it into "from" but with empty "to" since that is the same thing. I also made it so that if "to" is empty, it defaults to empty string. So "from" without corresponding "to" is the same as "strip" was. Using this way of doing it, you first list any characters to replace (pairs), and at the end of the "from" list you can put any characters to remove altogether. Because they are at the end, you can make "to" shorter than "from" and it will strip all the characters at the end of the list.