Extract package:regex-base

Extract allows for indexing operations on String or ByteString.
extract takes an offset and length, and has this default implementation:
extract (off, len) source = before len (after off source)