replaceAll


Description:

public static string replaceAll (string s, string pattern, string repl)

Replaces all regex matches with replacement text.

Invalid patterns return the original string.

Parameters:

s

input string.

pattern

regular expression pattern.

repl

replacement text.

Returns:

replaced string.