String replace JavaScript bad design

Hi all

I'd just thought I'd share my post on JavaScript string.replace behaviour.
<
http://www.thespanner.co.uk/2010/09/27/string-replace-javascript-bad-design/
>

I consider the function to be badly designed (although an excellent function
overall). I've provided a JavaScript patch until (if ever) browsers change
it's behaviour. I also consider Mozilla's third argument a really bad idea
as this unsupported by the other browsers at this time and adding flags just
seems pretty messy and adds to the confusion.

Cheers

Gareth

Received on Monday, 27 September 2010 11:26:54 UTC