replace - Java: Remove full stop in string -
i want delete total stops ( . ) in string.
therefore tried: inpt = inpt.replaceall(".", "");, instead of deleting total stops, deletes entire content of string.
is possible delete total stops? give thanks answers!
replaceall takes regular expressions argument, , . in regex means "any character".
you can utilize replace instead:
inpt = inpt.replace(".", ""); it remove occurences of ..
java replace
No comments:
Post a Comment