0
Hello,
Within a specific table in my DB, I have certain fields that were registered by someone else (users), so some fields instead of having a single space ' '
, has spaces of the most diverse types! I do the processing in Javascript as follows:
/\s/g
However, I would like to create a function within SQL Server that does this kind of processing. Is it possible? I looked here in the forum something similar but nothing effective and, I tried to create a function through the above syntax but without results.
Thank you!
@Marconi but if there is another type of "space", such as a tab, will it remove tbm? I am without sql now to test
– João Vitor
@jvbarsou made the test with a tab and worked, a tab inside the
Sql-Management
considered with 1 space, now already two this solution does not treat.– Marconi
@jvbarsou tries to take this my solution and adapts in Juliet’s response to this reply so-EN.
– Marconi
Reading suggestion : What the REGEX shortcut means
– Guilherme Lautert