Java Regex String Replace All replaceAll(Pattern pattern, String string, String replacement)

Here you can find the source of replaceAll(Pattern pattern, String string, String replacement)

Description

replace All

License

Open Source License

Declaration

public static String replaceAll(Pattern pattern, String string, String replacement) 

Method Source Code


//package com.java2s;

import java.util.regex.*;

public class Main {
    public static String replaceAll(Pattern pattern, String string, String replacement) {
        return pattern.matcher(string).replaceAll(replacement);
    }/*  ww  w .  j  a v a  2 s .  co m*/
}

Related

  1. replaceAll(final String regex, final String replaceWith, final String subject)
  2. replaceAll(final String regex, final String text, final String replacement)
  3. replaceAll(Pattern p, String s, String r, Function cb)
  4. replaceAll(String original, String regexWhat, String with)
  5. replaceAll(String regex, String ment, String str)
  6. replaceAll(String regex, String str, Map map)
  7. replaceAll(String regularExpression, String string, String newValue)