This will work (just tested in 5.2.1), but it will work in exactly the opposite order that it is defined.

The moinmoin wiki page for Analyzers, Tokenizers, and TokenFilters, in the section for HTMLStripCharFilterFactory, states that charFilter definitions must come before the tokenizer. This bit of documentation is wrong.

The easiest fix would be to correct the wiki page, but if the order in the config can be detected, we could emit a warning in 5.x when the order is wrong and fail to start the core in 6.0.

When I was first building my schema, back in the 1.4 days, I was thoroughly confused and caught off guard when I tried to use PatternReplaceCharFilterFactory. I found that it was being executed before tokenization, even though I had defined it AFTER. I did eventually figure out my mistake and switched to PatternReplaceFilterFactory. If the incorrect order had been enforced, or caused a warning in the log, I would have figured it out a lot sooner.