<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m attempting to match the leading - characters in a Markdown list such as this:<div class=""><br class=""></div><div class="">---</div><div class=""><div class="">What were the key things that drove me to make a switch?</div><div class="">- No Database -- you </div><div class="">- Tremendous Support -- the </div><div class="">- Sane Folder Structure -- everything</div><div class="">- Rapid Development -- there</div><div class="">- Blog Post Folders -- granted</div><div class="">- Asset Pipeline -- Grav</div><div class="">- Twig — yes</div><div class="">—</div><div class=""><br class=""></div><div class="">The regex that isn’t working looks like this:</div><div class=""><br class=""></div><div class=""><div class="">{    name = 'text.html.markdown.list';</div><div class="">     match = '(?<=\n)-(?= )|(?<!.)-(?= )';</div><div class="">},</div></div><div class=""><br class=""></div><div class="">What did I get wrong?</div><div class=""><br class=""></div><div apple-content-edited="true" 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 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=""><span style="text-align: -webkit-auto; orphans: 2; widows: 2;" class="">Bob</span><br class=""><div apple-content-edited="true" class=""><div style="orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">-------------------<br class="">Robert J. Rockefeller<br class="">Richmond Hill, GA<br class=""><a href="http://www.bobrockefeller.com/" class="">www.bobrockefeller.com</a></div></div></div></div></div></div>
</div>
<br class=""></div></body></html>