Here you can find the source of replace_with_in(String aStringToReplace, String aNewString, String aString)
public static String replace_with_in(String aStringToReplace, String aNewString, String aString)
//package com.java2s; //License from project: Open Source License import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static String replace_with_in(String aStringToReplace, String aNewString, String aString) { Pattern pattern = Pattern.compile(aStringToReplace); Matcher matcher = pattern.matcher(aString); return matcher.replaceAll(aNewString); }// www . ja v a 2 s . co m }