replaceToLowerCase method

String replaceToLowerCase(
  1. Pattern pattern,
  2. String replace
)

Replaces the first occurrence of the given pattern with the specified replacement and returns the result in lowercase.

Implementation

String replaceToLowerCase(Pattern pattern, String replace) {
  return replaceFirst(pattern, replace).toLowerCase();
}