Code example for Matcher

Methods: replaceAll

0
		System.out.println("find: " + find);
		String replace = "";
 
		Pattern pattern = Pattern.compile(find);
		Matcher matcher = pattern.matcher(source);
		String output = matcher.replaceAll(replace);
		 
		FileUtils.writeStringToFile(markdownFile, output);
 
		/* 
		 * This code is for saving the output to a new file so the original is 
		 * not overwritten; useful for debugging 
		 *  
		 * String markdownFileOutputPath = args[1]; File markdownFileOutput = 
		 * new File(markdownFileOutputPath); 
		 * FileUtils.writeStringToFile(markdownFileOutput, output); 
		 */ 
 
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java