37. Finding files in a directory that match a regular expression

Write a function that, given the path to a directory and a regular expression, returns a list of all the directory entries whose names match the regular expression.

Get The Modern C++ Challenge now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.