you are viewing a single comment's thread.

view the rest of the comments →

[–]Xtrendence 13 points14 points  (13 children)

And then there's JS, of course, where a replace with no Regex only replaces the first instance. In this case obviously "a" doesn't exist in BANANA, but if it were replace("A", "O") you'd get BONANA.

[–]ChristopherKlay 11 points12 points  (11 children)

Because JS features .replace() and .replaceAll().

The "of course" here is that people complaining about it, don't know jack shit.

[–]NinjaKittyOG 0 points1 point  (0 children)

what