Given a regular expression, a string and an operation:
String regex = "\\dabc";
String str = "aab3bc4abcabc2abc";
String result = str.replaceAll(regex, "");
Find the resulting string.
Given a regular expression, a string and an operation:
String regex = "\\dabc";
String str = "aab3bc4abcabc2abc";
String result = str.replaceAll(regex, "");
Find the resulting string.
Create a free account to access the full topic