Fixed the *ix plural regular expression replacing the pattern in the middle of a word

The same fix as in pull request #5712.

I thought that the fix would not only be applied to the master but also to 4.2, but apparently this isn't the case, therefore I am resubmitting it here.