Added get_substring to the libpcre interface

Signed-off-by: Haru <haru@dotalux.com>