Shorter regex
1 files changed, 1 insertions(+), 1 deletions(-) M 2023/01/digits2.ml
M 2023/01/digits2.ml => 2023/01/digits2.ml +1 -1
@@ 41,7 41,7 @@ let rec add_next_match acc rgx s = let extract_digits line = let rgx = Str.regexp "0\|1\|2\|3\|4\|5\|6\|7\|8\|9\|zero\|one\|two\|three\|four\|five\|six\|seven\|eight\|nine" "1\|2\|3\|4\|5\|6\|7\|8\|9\|zero\|one\|two\|three\|four\|five\|six\|seven\|eight\|nine" in let first_idx = Str.search_forward rgx line 0 in let first = Str.matched_string line in