java eliminate numbers from string
firstname1 = firstname1.replaceAll("[0-9]","");
java eliminate numbers from string
firstname1 = firstname1.replaceAll("[0-9]","");
java isolate the numbers from string
// string contains numbers
String str = "The price of the book is $49";
// extract digits only from strings
String numberOnly = str.replaceAll("[^0-9]", "");
// print the digitts
System.out.println(numberOnly);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us