1
I am a programmer PHP
and giving maintenance on a project Java
I found myself with the need to return only numbers contained in a certain String
.
I found no questions about it in Sopt and found in Soen, so I bring here this question seeking to know what is the best option, since in Java
for being a lower level language, everything or almost everything makes a difference in processing and can always be optimized...
An example of what I am requesting:
String cnpj = "83.411.122/0001-06";
The expected return:
"83411122000106"
You can give us an example of what you mean by "[...] returning only numbers in a given one
String
"? On a parallel subject Java is a commercial language, it is far from low level.– Genos
Okay, let’s get things straight, Low Level, which means she has more power over the hardware, more ability to manipulate it, secondly, I’ll put an example of what I’m suggesting, sorry I’m not exactly clear, buddy.
– Kenny Rafael
@Genos, I think it’s clearer now.
– Kenny Rafael