ref: 925c0021a3447cc63a8ad07846e55e34fc277877
dir: /utils.ml/
exception Syntax_error of string exception Runtime_error of string (* copied verbatim - must needs grok *) let gsub re f str = String.concat "" (List.map (function | Str.Delim x -> f x | Str.Text x -> x) (Str.full_split re str)) ;;