I have a text like: Sentence one. Sentence two. Sentence three.
I want it to be:
- Sentence one.
- Sentence two.
- Sentence three.
I assume I can replace '.' with '.' + char(10) + char(13), but how can I go about bullets? ‘•’ character works fine if printed manually I just do not know how to bullet every sentence including the first.
Here’s my over-the-top approach but I feel it’s a fairly solid approach. It combines classic SQL problem solving techniques of Number tables for string slitting and use of the
FOR XMLfor concatenating the split lines back together. The code is long but the only place you’d need to actually edit is theSOURCE_DATAsection.No knock on @Jeremy Wiggins approach, but I prefer mine as it lends itself well to a set based approach in addition to being fairly efficient code.
Results
References