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"
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"