I want to reformat my Swift documentation from
/**
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book. It has survived not only five centuries, but
also the leap into electronic typesetting, remaining essentially
unchanged. It was popularised in the 1960s with the release of Letraset
sheets containing Lorem Ipsum passages, and more recently with desktop
publishing software like Aldus PageMaker including versions of Lorem Ipsum.
*/
to
/// Lorem Ipsum is simply dummy text of the printing and typesetting industry.
/// Lorem Ipsum has been the industry's standard dummy text ever since the
/// 1500s, when an unknown printer took a galley of type and scrambled it to
/// make a type specimen book. It has survived not only five centuries, but
/// also the leap into electronic typesetting, remaining essentially
/// unchanged. It was popularised in the 1960s with the release of Letraset
/// sheets containing Lorem Ipsum passages, and more recently with desktop
/// publishing software like Aldus PageMaker including versions of Lorem Ipsum.
A regular expression find and replace edit: , using Xcode's find/replace regex engine, would be preferred because God only knows how many doc notes I have in my library of over 200 different classes. The expression to find these blocks is simple, but I do not know how to make my replace expression so that I am able to add a prefix to each line, well.
Current Search Expression: (?s:/\*\*(.*?)\*/)
- matches all text in between /** */
Current Replace Expression: /// $1
Obviously, the expressions above do not achieve exactly what I am looking for. I appreciate any help, in advance! Thanks.