Path_glob is a small library to match strings (in particular filesystem paths) against glob-style patterns, or boolean combinations of patterns.
See the module documentation, including a short example.
For another library achieving similar purposes, see the Re.Glob module of ocaml-re.