I always used to copy a method to simulate a replaceAll with the javascript’s prototype, never thinking about speed. Now I decided to go and create a method by myself that do this and also allows you to ignore the case. The only bad thing (or not) is that you can’t use regex, just regular [...]