Why not `regex_search(..."%[0-9]*d")` ? Might be a little bit more readable.