Hi all,
I've got a set of data I'm trying to match to another set of data on a common field. The required field in one set, however, has a random number of spaces between some words, which means it won't match the other set.
For various reasons, I'm not able to trim both sets and of data and match the trimmed versions. So I need to find a way of trimming the set with random spaces in such a way that it leaves just a single space between each word - which will match to the other set. I suspect that there's a relatively simple RegEx answer, but I just can't get it to work.
Help?
Here's a bit of dummy data to show what I'm aiming for:
| Record | Actual Data | Desired Data |
| 1 | AB 234 | AB 234 |
| 2 | CD 123 | CD 123 |
| 3 | EGSC 123 31 | EGSC 123 31 |