samedi 9 mai 2015

Javascript strip Latex form of English letter variants

How can I replace Latex characters using {\'<1 alpha>} pattern with corresponding English letter?

For example

L{\'o}pez

Should change to

Lopez

It should not affect any other character out of {\'<1 alpha>} pattern. It should be greedy as well since there might be several characters required to be pruned.

Aucun commentaire:

Enregistrer un commentaire