NewOrderFac33
Well-known Member
- Joined
- Sep 26, 2011
- Messages
- 1,275
- Office Version
- 2016
- 2010
- Platform
- Windows
Good afternoon,
That's it, really. I'm comparing two lists that look identical at first glance, but some have trailing and leading space characters.
I can't use TRIM as this would remove all the space characters from within the string too, which I don't want.
As an enhancement to this, could anyone suggest a way to replace multiple space characters within a string with a single space, regardless of how many occurrences of multiple sequential spaces were found?
e.g. Cat{Space}{Space}{Space}Dog{Space}{Space}Horse would become Cat{Space}Dog{Space}<space></space><dog><space></space>Horse
As always, thanks in advance.
Pete</dog>
That's it, really. I'm comparing two lists that look identical at first glance, but some have trailing and leading space characters.
I can't use TRIM as this would remove all the space characters from within the string too, which I don't want.
As an enhancement to this, could anyone suggest a way to replace multiple space characters within a string with a single space, regardless of how many occurrences of multiple sequential spaces were found?
e.g. Cat{Space}{Space}{Space}Dog{Space}{Space}Horse would become Cat{Space}Dog{Space}<space></space><dog><space></space>Horse
As always, thanks in advance.
Pete</dog>
Last edited: