🌐
GitHub
github.com › vitejs › vite › issues › 7449
String.prototype.replaceAll polyfill is not included · Issue #7449 · vitejs/vite
March 25, 2022 - We use '@vitejs/plugin-legacy' to create legacy build and also include polyfills for our modern browsers. We use String.prototype.replaceAll method in our application, but we still miss its polyfill for the modern browsers, though our browserlist query includes modern browsers which do not ...
Author: vitejs
🌐
Gitbook
olexsyn.gitbook.io › enote › progr › javascript › string › replaceall-polyfill
replaceAll() polyfill - ENote - GitBook
March 13, 2023 - /** * String.prototype.replaceAll() polyfill * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/ * @author Chris Ferdinandi * @license MIT */ if (!String.prototype.replaceAll) { String.prototype.replaceAll = function(str, newStr){ // If a regex pattern if (Object.prototype.toString.call(str).toLowerCase() === '[object regexp]') { return this.replace(str, newStr); } // If a string return this.replace(new RegExp(str, 'g'), newStr); }; }
🌐
GeeksforGeeks
geeksforgeeks.org › java › matcher-replaceallstring-method-in-java-with-examples
Matcher replaceAll(String) method in Java with Examples - GeeksforGeeks
July 1, 2020 - // Java code to illustrate replaceAll() method import java.util.regex.*; public class GFG { public static void main(String[] args) { // Get the regex to be checked String regex = "(FGF)"; // Create a pattern from regex Pattern pattern = Pattern.compile(regex); // Get the String to be matched String stringToBeMatched = "GFGFGFGFGFGFGFGFGFG FGF GFG GFG FGF"; // Create a matcher for the input String Matcher matcher = pattern.matcher(stringToBeMatched); // Get the String to be replaced String stringToBeReplaced = "GFG"; StringBuilder builder = new StringBuilder(); // Replace every matched pattern // with the target String // using replaceAll() method System.out.println("After Replacement: " + matcher .replaceAll(stringToBeReplaced)); } }
🌐
X
x.com › _developit › status › 1097302964274892800
Jason Miller 🦊⚛ (@_developit) on X
February 18, 2019 - 🐣 110b String.prototype.replaceAll polyfill: https://t.co/vbPpAQEO3p
🌐
Maven Repository
mvnrepository.com › artifact › org.mvnpm › string.prototype.replaceall
Maven Repository: org.mvnpm » string.prototype.replaceall
Spec-compliant polyfill for String.prototype.replaceAll ESnext proposal · Central (1) Central · Atlassian External · Atlassian · WSO2 Releases · WSO2 Public · Hortonworks · JCenter · KtorEAP · Mulesoft · Sonatype · aar android apache api application arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript kotlin library logging maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter testing tools ui war web webapp ·
🌐
Char0n
char0n.github.io › ramda-adjunct › 2.25.0 › replaceAll.js.html
replaceAll.js - Documentation
import { curryN, invoker } from ... = curryN(3, polyfill); export const replaceAllInvoker = invoker(2, 'replaceAll'); /** * Replaces all substring matches in a string with a replacement....
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › String › replaceAll
String.prototype.replaceAll() - JavaScript - MDN Web Docs
"aabbcc".replaceAll(/b/g, "."); ("aa..cc"); Polyfill of String.prototype.replaceAll in core-js · es-shims polyfill of String.prototype.replaceAll · Regular expressions guide · String.prototype.replace() String.prototype.match() RegExp.prototype.exec() RegExp.prototype.test() Was this page helpful to you?
Find elsewhere
🌐
Go Make Things
gomakethings.com › how-to-write-your-own-vanilla-js-polyfill
How to write your own vanilla JS polyfill | Go Make Things
Before polyfilling it, the first thing I want to do is make sure a native version of it doesn’t exist. We only want to run our polyfill if there’s not a native version available. In this case, the replaceAll() method is on the String.prototype object, so we check for that.
🌐
Discourse
meta.discourse.org › contribute › bug
Discourse not loading on legacy browsers - Page 2 - Bug - Discourse Meta
March 25, 2022 - What about this @david if (!String.prototype.replaceAll) { String.prototype.replaceAll = function(str, newStr){ // If a regex pattern if (Object.prototype.toString.call(str).toLowerCase() === '[object regexp]') { return this.replace(str, newStr); } // If a string return this.split(str).join(newStr); }; } I changed the string branch of the solution you shared, so it fixes converting Strings to Regex without escaping.
🌐
GeeksforGeeks
geeksforgeeks.org › java › matcher-replaceallfunction-method-in-java-with-examples
Matcher replaceAll(Function) method in Java with Examples - GeeksforGeeks
September 7, 2021 - // Java code to illustrate replaceAll() method import java.util.regex.*; public class GFG { public static void main(String[] args) { // Get the regex to be checked String regex = "(FGF)"; // Create a pattern from regex Pattern pattern = Pattern.compile(regex); // Get the String to be matched String stringToBeMatched = "GFGFGFGFGFGFGFGFGFG FGF GFG GFG FGF"; // Create a matcher for the input String Matcher matcher = pattern.matcher(stringToBeMatched); System.out.println("Before Replacement: " + stringToBeMatched); // Get the String to be replaced String stringToBeReplaced = "(GFG)"; StringBuilder builder = new StringBuilder(); // Replace every matched pattern // with the target String // using replaceAll() method System.out.println("After Replacement: " + matcher .replaceAll( x -> x.group().toLowerCase())); } }
🌐
Baeldung
baeldung.com › home › java › java string › java string.replaceall()
Java.String.replaceAll() | Baeldung
July 29, 2026 - The String class provides replace() and replaceAll(). The two methods look similar, and they can produce the same results sometimes: String input = "hello.java.hello.world"; String replaceResult = input.replace("hello", "hi"); assertEquals("hi.java.hi.world", replaceResult); String replaceAllResult = input.replaceAll("hello", "hi"); assertEquals("hi.java.hi.world", replaceAllResult);
🌐
GitHub
github.com › zloirock › core-js › issues › 900
String.prototype.replaceAll · Issue #900 · zloirock/core-js
December 27, 2020 - I'm using core-js@3.8.1 and I've noticed that String.prototype.replaceAll polyfill has a bug. It should support an algorithm defined by special replacements patterns. POC: 'foo.bar'.replaceAll('.', '$$$$$'); This call actually returns fo...
Author: zloirock
🌐
Codecademy
codecademy.com › docs › java › strings › .replaceall()
Java | Strings | .replaceAll() | Codecademy
October 17, 2023 - In the replaceAll() method, the [^0-9] pattern is passed for the regex argument and "" for the repl argument. This means that every non-digit character will be replaced with an empty string.
🌐
npm
npmjs.com › package › string-replace-all-ponyfill
string-replace-all-ponyfill - npm
December 17, 2020 - polyfill-library · es-shims · core-js · For automated tests, run npm run test:automated (append :watch for watcher support). MIT © Ivan Nikolić · string · replaceall · prototype · string.prototype.replaceall · ponyfill · npm i string-replace-all-ponyfill ·
      » npm install string-replace-all-ponyfill
    
Published: Dec 17, 2020
Version: 1.0.1
🌐
TechVidvan
techvidvan.com › tutorials › java-string-replaceall-method
Java String replaceAll() Method - TechVidvan
August 5, 2025 - The replaceAll() method of the Java String class returns a string that replaces all the characters in the regex and replacement string sequence.
🌐
Medium
medium.com › @AlexanderObregon › javas-string-replaceall-method-explained-ec87fae6d15e
Java's String.replaceAll() Method Explained
August 22, 2024 - The replaceAll() method in Java is part of the String class and is designed to replace each substring of the string that matches the given regular expression with the specified replacement.