How can I match reference-style markdown links?
I am interested in using Javascript to find all reference-style markdown
links in a string of text. So I would want the following:
[all the things][things] => "things"
[something] => "something"
But not:
[o hai](http://example.com)
[o hai] (http://example.com)
In other words, an open square bracket followed by a close square bracket,
capturing the text inside, but not the same followed by a set of
parentheses.
Make sense? Thanks!
No comments:
Post a Comment