Run Code
|
API
|
Code Wall
|
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
AllStar
1_Arpansubba_Lincoln.java
Decode byte array
JAVA # Klavyeden girilen cümlede kaç adet "a" harfi var
Area of the triangle
Escaping Literals II
1a
4.b
This code is not what it seems...
WM Test