Another MarkDown challenge! This challenge is simply to parse MarkDown links - so [text](http://example.com)
would simply be replaced with the following HTML: <a href="http://example.com">text</a>
.
Be careful with images. ![alt text](image location)
should be left alone, as it isn't a link.
If you don't want to write an expression for URLs too, you can see answers to the previous challenge on URLs on Reddit.
To test a regular expression on the test cases below, type it into the text input. Each test case will be marked as passed or failed respectively - you are aiming to get as many test cases as you can to pass. Note that JavaScript must be enabled for this feature to work. The regex engine used is the JavaScript regex engine; it is similar to PCRE, but with a few differences.