Created
April 4, 2015 01:47
-
-
Save Aleksey-Danchin/679f99c0fcd271a4027d to your computer and use it in GitHub Desktop.
Link from Markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'[Алексей Данчин](http://vk.com/aleksey_danchin)'.replace(/\[([^\]]+)\]\((http:\/\/[^ ]+)\)/, '<a href="$2" target="__blank">$1</a>'); | |
// result: | |
// "<a href="http://vk.com/aleksey_danchin" target="__blank">Алексей Данчин</a>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment