Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
7 results across 6 corpora for String.prototype.replaceAll().
Encyclopedia 1
Comparison of programming languages (string functions)
pjumpjumpjump" "blah".Replace("z", "y"); // returns "blah" // Examples in Java "effffff".replace("f", "jump"); // returns "ejumpjumpjumpjumpjumpjump" "effffff".replaceAll("f*", "jump"); // returns "ejump" // Examples in Raku "effffff".subst("f", "jump", :g); # returns "ejumpjumpjumpjumpjumpjump" "blah".subst("z", "y", :g); # returns "blah" ' Examples in Visual Basic Replace("effffff", "f", "jump") ' returns "ejumpjum
Developer library 6
Firefox 77 release notes for developers
SVG - Firefox now supports the transform-origin presentation attribute ([Firefox bug 1581691](https://bugzil.la/1581691)). ### JavaScript - String.prototype.replaceAll() is now supported ([Firefox bug 1608168](https://bugzil.la/1608168)). ### APIs #### IndexedDB - The IDBCursor.request property has been implemented ([Firefox bug 1536540](https://bugzil.la/1536540)). ### WebDriver conformance (Marionette) - Ce
Named capturing group: (? ...)
ach match array yielded by the iterator returned by String.prototype.matchAll() - The `groups` parameter of the String.prototype.replace() and String.prototype.replaceAll() methods' `replacement` callback function - [Named backreferences](/docs/Web/JavaScript/Reference/Regular_expressions/Named_backreference) within the same pattern All names must be unique within the same pattern. Multiple named capturing groups wi
Capturing group: (...)
- Each match array yielded by the iterator returned by String.prototype.matchAll() - The `pN` parameters of the String.prototype.replace() and String.prototype.replaceAll() methods' `replacement` callback function - [Backreferences](/docs/Web/JavaScript/Reference/Regular_expressions/Backreference) within the same pattern > [!NOTE] > Even in `exec()`'s result array, capturing groups are accessed by numbers `1`, `2`,
RegExp
des) throw a TypeError if the first argument is a regex. - [`String.prototype.matchAll()`](/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll) and [`replaceAll()`](/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) check whether the [global](/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global) flag is set if the first argument is a regex before invoking its [`[Symbol.matchAll]()`](/do
RegExp.prototype.sticky
laces once at the current `lastIndex` and updates `lastIndex`. - For `g` and `gy` regexes: replaces all occurrences matched by `exec()`. - [`String.prototype.replaceAll()`](/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll) (which calls [`RegExp.prototype[Symbol.replace]()`](/docs/Web/JavaScript/Reference/Global_Objects/RegExp/Symbol.replace)): `y`, `g` and `gy` are all different. - For `y` regexes:
RegExp: lastIndex
t modifiedLine = line; while ((match = mdLinkPattern.exec(modifiedLine))) { const originalLink = match.groups.link; const resolvedLink = originalLink.replaceAll(/^files|\/index\.md$/g, ""); modifiedLine = modifiedLine.slice(0, match.indices.groups.link[0]) + resolvedLink + modifiedLine.slice(match.indices.groups.link[1]); // Rewind the pattern to the end of the resolved link md