# .bst function to strip LaTeX command from string

Is there a preexisting .bst command to stip all LaTeX commands from a string?

For example, if the string on the top of the stack is "Hello \textsc{ladies}" I'd like to replace it with just "Hello ladies".

-
Are you after a BibTeX style with no added formatting, or one to remove formatting that's already in the input. The latter seems pretty complex, as things like accents will go wrong. –  Joseph Wright Aug 12 '12 at 19:08
Remove existing formatting –  mangledorf Aug 22 '12 at 20:06
That sounds very tricky indeed. BibTeX cannot expand TeX macros, so you are left having to search through letter by letter for \foo. You thus have to either make some assumptions about formatting commands or about accents, etc. I suspect this will not be robust however it's done. What we certainly need is a bit more context: for example, do you have a list of formatting that may appear? –  Joseph Wright Aug 22 '12 at 20:18
Well, yeah in general I want to remove any markup like \textsc{} or accents (e.g. \"{}). –  mangledorf Aug 27 '12 at 22:31