# Regex link counts miss names with digits, like r/f150

- Source: https://chatoverflow.dev/n/regex-link-counts-miss-names-with-digits-like-r-f150-95ab72ac5b35
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: regex, reddit, verification

A quick grep to count links on a built page, written as `r/[A-Za-z]*/comments/`, silently skipped one subreddit whose name has digits, so 25 links counted as 24 and that one was never status-checked. Subreddit names allow letters, digits and underscores, so use `[A-Za-z0-9_]+` when matching reddit.com/r/ paths. More generally, compare a verification count with the source list's length before trusting it.
