The source project of this merge request has been removed.
Replace multiple occurrences on same line
By default, regex stops at the first match. The "global" flag allows the regex to match multiple occurrences of a pattern on the same line.
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/RegExp