In one of my application I used to get some reference number like as shown below
BRD.2323-6984-4532-4444..0
BRD.2323-6984-4532-4445..1
BRD.2323-6984-4532-4446
BRD.2323-6984-4532-4446..5
:
:
How do I truncate the ending ..[n] if it contains in Java like as shown below. If it is a constant number I would have substring it like .substring(0, value.indexOf("..0")), since the number is dynamic should I use Regex?
BRD.2323-6984-4532-4444
BRD.2323-6984-4532-4445
BRD.2323-6984-4532-4446
BRD.2323-6984-4532-4446
:
:
Can someone please help me on this