-4

I would ask you help me to solve this problem . How i can find numbers from this word? Problem is that: S1e2n3t4e5n6c7e Result should be : 1234567 Thanks for attention...

1 Answers1

-2

You can do :

"S1e2n3t4e5n6c7e".replaceAll("[^0-9]+", "");
Prim
  • 2,880
  • 2
  • 15
  • 29