Test, validate and match regular expressions
Matches MediaWiki-style wikilinks like [[Page Name]], even when the opening brackets, inner content, or closing brackets are each individually wrapped in HTML tags (e.g., <span>[[</span><span>Page</span><span>]]</span>). Backreferences ensure any wrapping tags are properly closed, and the gm flags find all links across multiple lines. Ideal for parsing wiki syntax that has been fragmented by HTML sanitizers or rich text editors.