Test, validate and match regular expressions
Matches Obsidian internal links in both wiki and markdown formats. Captures wiki-style links like [[Note]] or [[Note|Display Text]], as well as markdown links like [text](path) where the target contains no colon, ensuring only relative internal links match rather than external URLs. A negative lookbehind excludes escaped links preceded by a backslash. Useful for parsing, converting, or extracting cross-note references in Obsidian vaults.