vendredi 16 octobre 2015

Fix spelling by selecting extra letter to delete with RegEx

I'm trying to get more practice with RegEx to do some simple things like select only one of a certain letter.

What are some good ways to fix the following word by selecting the character to delete? These should all be able to do within javascript, so no using looks. The more ways the better! Thank you!

(should be spelled "PREMIER"

PREEMIER

Aucun commentaire:

Enregistrer un commentaire