HTML links to Markdown

Quick regular expression snippet to convert HTML links to Markdown links:

Find:

<a href=\\"(.*?)\\">(.*?)</a>

Replace:

[$2]($1)

(Try it in TextMate, for example, which has an awesome find/replace dialog that accepts regular expressions.)