[TxMt] Re: Regex For Markdown Fenced Code Blocks

Matt Neuburg matt at tidbits.com
Tue Feb 10 02:09:59 UTC 2015


On Feb 9, 2015, at 4:07 PM, Robert J. Rockefeller <bob at bobrockefeller.com> wrote:

> 	end = '(^|\G)(^[`]{3})';

Remember this is just one line. It can't contain two start of line (caret). No single line can do that.

You should try modelling yourself after existing bundles and existing regexen. It saves a mess of time.

m.

--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html




More information about the textmate mailing list