Adding regex flags

PREG_OFFSET_CAPTURE is a very important flag