0

String example = "1982.2 is a sample string with 6 digits"

Is there a way to do this in regex with it returning the string without the decimal part of it

result -> "1982 is a sample string with 6 digits"

Wanderer
  • 346
  • 2
  • 5
  • 18

0 Answers0