Regex Examples and Cookbook/Extract markdown links

Capture label and URL from markdown links.

Section: Extraction Recipes

Extract markdown links

regex
regex
\[([^\]]+)\]\(([^)]+)\)
Explanation

Capture group 1 is the label and group 2 is the URL.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Extraction Recipes
Extract fenced code block
Match a markdown fenced code block.
OpenIn sheetregexsame section
Extract URLs
Find basic HTTP or HTTPS URLs.
OpenIn sheetregexsame section
Extract emails
Find email-like tokens in text.
OpenIn sheetregexsame section
Capture a simple CSV field
Extract a non-quoted CSV field token.
OpenIn sheetregexsame section
Extract log level
Capture common log levels from log lines.
OpenIn sheetregexsame section
UUID shape
Match a standard hyphenated UUID.