A regex scanner identifies broken URLs and replaces each Markdown link syntax with its plain anchor text via a reverse-index splice, preserving sentence flow without leaving dead hyperlinks.

flowchart LR
    A["[custom jerseys](https://dead.url)"] --> B[Regex Detection & Probe]
    B -->|Status: 404 / Dead| C[Unwrap Link]
    C --> D["custom jerseys"]