Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
@Shicong Hong
below is the input string :
1234-test1- test-jbddn-4856- string-test
result expectation:
test1- test-jbddn- string-test
so any string which is having number along with hyphen(5654-) it should replace with empty string ("").
Thanks in advance
Hello @Sushil Singh ,
You can try the below .replaceAll() method like
text.replaceAll("\\d{4}-", "");
Best regards
Aiming
Hello @Sushil Singh ,
You can try the below .replaceAll() method like
text.replaceAll("\\d{4}-", "");
Best regards
Aiming
Thank you . this resolved my issue