+
+let rec pattern_ex l =
+ match l with
+ [] -> []
+ | s::tl -> let result =
+ let c = pgc () in
+ let qq = "select uri from registry where uri ~ '" ^ s ^ "' order by registry.uri asc" in
+ let res = c#exec (qq) in
+ List.map (function uri -> (uri,[])) (pgresult_to_string_list res)
+ in
+ cat result (pattern_ex tl)
+;;
+