[TxMt] Regex For Markdown Lists Help

Bob Rockefeller bob at bobrockefeller.com
Sun Feb 8 20:41:23 UTC 2015


I’m attempting to match the leading - characters in a Markdown list such as this:

---
What were the key things that drove me to make a switch?
- No Database -- you 
- Tremendous Support -- the 
- Sane Folder Structure -- everything
- Rapid Development -- there
- Blog Post Folders -- granted
- Asset Pipeline -- Grav
- Twig — yes
—

The regex that isn’t working looks like this:

{    name = 'text.html.markdown.list';
     match = '(?<=\n)-(?= )|(?<!.)-(?= )';
},

What did I get wrong?

Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com <http://www.bobrockefeller.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150208/7ebcc859/attachment.html>


More information about the textmate mailing list