Hi
(The actual regexp is using (.+?), but using an empty string as link text will still produce a link for some strange reason.)
Empty string is actually a special case: such links will use the name of the target page minus the namespace prefix for the anchor.
Regards Tomaž