'twas the line breaks made the difference. The fix is to use [^\]]* for the match.
(. doesn't match new line characters unless you ask nicely with the /s switch.)
In reply to Re^5: regex to collect local links in Markdown
by GrandFather
in thread regex to collect local links in Markdown
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |