Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
JAVA regex for only allow numbers
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String str = "b_123#$%585885"; System.out.println(str.replaceAll("[^\\d]", "")); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Compare three ways to clear a String in java
classwork
extendd11
Vasanth Selvaraj
Display Page (Pagination)
String
First Interview question - Java
http://stackoverflow.com/questions/23175927/how-to-clone-object-defined-by-interface
Huffman Encoding Tree
Человечки
Please log in to post a comment.