Hi
I have been trying, unsuccessfully, to remove trailing spaces from a set of numbers (all are 10 Characters) whilst keeping any spaces that may exist in the middle.
TRIM does not work because some of the numbers have 2 spaces in the middle and the TRIM function removes one of these.
I would be very grateful if someone could provide a solution.
Thanks in advance.
example of number set below:
[TABLE="width: 99"]
<tbody>[TR]
[TD]03685 [/TD]
[/TR]
[TR]
[TD]040710 [/TD]
[/TR]
[TR]
[TD]089284632 [/TD]
[/TR]
[TR]
[TD]0893221 [/TD]
[/TR]
[TR]
[TD]0893870004[/TD]
[/TR]
[TR]
[TD]089947002 [/TD]
[/TR]
[TR]
[TD]03685 12[/TD]
[/TR]
[TR]
[TD]03685 14[/TD]
[/TR]
[TR]
[TD]0124 5[/TD]
[/TR]
[TR]
[TD]0124 6[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
I have been trying, unsuccessfully, to remove trailing spaces from a set of numbers (all are 10 Characters) whilst keeping any spaces that may exist in the middle.
TRIM does not work because some of the numbers have 2 spaces in the middle and the TRIM function removes one of these.
I would be very grateful if someone could provide a solution.
Thanks in advance.
example of number set below:
[TABLE="width: 99"]
<tbody>[TR]
[TD]03685 [/TD]
[/TR]
[TR]
[TD]040710 [/TD]
[/TR]
[TR]
[TD]089284632 [/TD]
[/TR]
[TR]
[TD]0893221 [/TD]
[/TR]
[TR]
[TD]0893870004[/TD]
[/TR]
[TR]
[TD]089947002 [/TD]
[/TR]
[TR]
[TD]03685 12[/TD]
[/TR]
[TR]
[TD]03685 14[/TD]
[/TR]
[TR]
[TD]0124 5[/TD]
[/TR]
[TR]
[TD]0124 6[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]