replaceToUpperCase method
Replaces the first occurrence of the given pattern with the specified replacement and returns the result in uppercase.
Implementation
String replaceToUpperCase(Pattern pattern, String replace) {
return replaceFirst(pattern, replace).toUpperCase();
}