add match preview tab 2

why not simple `char *pattern = StringValueCStr(str_pattern);` premature initialization is not needed.