Replace all occurrences of the characters b, g, and r in a given text with the character x.
Scala Regex
Broken printing press
Report a typo
Sample Input 1:
bgr is the best format for an imageSample Output 1:
xxx is the xest foxmat fox an imaxeWrite a program in Scala 3
def hideChars(s: String): String =
??? // Write your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.