I want to remove a numeric value from a specific position position. I have used a regex but it deletes every numeric value from the String. I have these Strings: Draft1(admin) Draft2(adminn) Draft21(admin23) Draft112(admin211) And I want these strings as: Draft(admin) Draft(adminn) Draft(admin23) Draft(admin211) currently I’ve used regex: name = name.replaceAll("\\d", ""); which replaces all […]
The post How to remove a numeric value at specific position in a String appeared first on BlogoSfera.