ajaxorg/ace — pull request #591 by okonomiyaki3000 (2011-12-21 08:18:07+00:00)
Title: Numer of items replaced

For giving useful feedback to the user, replace and replaceAll should return the number of items replaced. Of course, for 'replace' that number will be 0 or 1.