Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ +1. It took me a while to realise why the examples would cause infinite replacement and it was luck that my own example did not suffer from it. I also like the name countReplace. $\endgroup$ Commented Feb 13, 2015 at 12:38
  • $\begingroup$ there's deep and then there's Mr Wizard DEEP ! Learning so much ! $\endgroup$ Commented Feb 13, 2015 at 14:02
  • $\begingroup$ @PlaysDice And then there is Leonid deep. If you haven't discovered that layer yet order food in; you'll be reading for a while. ;-) $\endgroup$ Commented Feb 13, 2015 at 18:30