Question: In the first, we will use a regex expression and a suitable replace - based method from the String class to match and replace all
In the first, we will use a regex expression and a suitable replacebased method from the
String class to match and replace all digits in an input string text with the corresponding
String mask both provided as arguments to the method. The result should be the new
version of the string, which should be returned from the method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
