<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi there Tuk,<div class=""><br class=""></div><div class="">I usually just find a delimiter (in your case a comma) and replace them with a newline regexp (\n).</div><div class=""><br class=""></div><div class="">See in the video I’ve quickly put together: <a href="https://v.usetapes.com/ZFDCAjpx2i" class="">https://v.usetapes.com/ZFDCAjpx2i</a></div><div class=""><br class=""></div><div class="">There may be quicker methods (that I’m unaware of) but this is admittedly far faster than having to manually go through each line.</div><div class=""><br class=""></div><div class="">— Attila</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><b class="">ATTILA GYÖRFFY</b></div><div class="">I develop software.</div><div class=""><br class=""></div><div class=""><a href="http://attilagyorffy.com" class="">attilagyorffy.com</a> | <a href="http://www.twitter.com/attilagyorffy" class="">@attilagyorffy</a> |  | <a href="http://linkedin.com/in/attilagyorffy" class="">in/attilagyorffy</a> | <a href="http://www.github.com/attilagyorffy" class="">github.com/attilagyorffy</a></div><div class=""><br class=""></div><div class=""><div class=""><div class=""><span class="" style="color: rgb(127, 205, 37);">Every time you print an email, a tree is marked for death.</span></div><div class=""><span class="" style="color: rgb(127, 205, 37);">Trees provide O2. You need that to breathe, remember? 🌳</span></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 2018. Jan 3., at 10:34, Tuk Bredsdorff <<a href="mailto:tuk@tiktuk.net" class="">tuk@tiktuk.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">is there a quick way to transform for instance<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>[Role, User, UserRole, SourceAddress, BulkMessage, Message, SingleSMSTemplate, Company, Contact]<br class=""><br class="">into<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>[<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span>Role,<br class=""><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span>User,<br class=""><span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span>UserRole,<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span>SourceAddress,<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre">    </span>BulkMessage,<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><span class="Apple-tab-span" style="white-space:pre">    </span>Message,<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span><span class="Apple-tab-span" style="white-space:pre">    </span>SingleSMSTemplate,<br class=""><span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span>Company,<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span><span class="Apple-tab-span" style="white-space:pre">    </span>Contact<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>],<br class=""><br class="">?<br class=""><br class="">(In this case it's Python but it could be more or less any language.)<br class=""><br class="">I do this so often manually, there must be a better way?<br class=""><br class="">Thanks,<br class="">Tuk<br class=""><br class=""><br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate<br class=""></div></div></blockquote></div><br class=""></div></body></html>