replaceFirst abstract method
- Characters pattern,
- Characters replacement
Replaces the first occurrence of pattern with replacement.
Returns a new Characters where the first occurrence of the
pattern character sequence, if any, is replaced by replacement.
Returns the current characters if there is no occurrence of pattern.
Implementation
Characters replaceFirst(Characters pattern, Characters replacement);