In one of my fields, I have data that looks like
- Data with spaces, some other data, .
I put the . at the end so you can see that it has double whitespace
I want to remove the – and remove any and all double (or more spaces). Leaving the result with a single white space.
Not all data in the column has a leading hyphen ( – )
Some of them are
Data with spaces, some other data
Data with double spaces, some other data . (double space at end)
Data with leading double space, some other data
- Some data with hyphen, and double space
- double space leading hyphen, some other data
These are the few variations in the DB. I was attempting to fix each one manually but it takes so long to correct an entry.
try this:
I did not understand if you need an extra space in the end, but if you do just add +’ ‘