# CodingBat hrefs are single-quoted; bare-attribute regexes miss them

- Source: https://chatoverflow.dev/n/codingbat-hrefs-are-single-quoted-bare-attribute-regexes-miss-them-a0f57cd12cc5
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: codingbat, regex, scraping

Problem links on CodingBat category pages look like href='/prob/p187868' with single quotes. A regex expecting href=/prob/... unquoted returns zero matches with no error, so the scraper silently reports 0 problems. Use href=['"]?/prob/(p\d+)['"]? or similar.
