ocaml/ocaml-re — pull request #45 by rgrinberg (2014-12-15 07:44:16+00:00)
Title: lsplit2

Like split but will return a tuple of 2 elements on a match. None on no match. I've seen this implemented a couple of times in various code bases so this is definitely useful.