allow pcre to handle substrings directly. fix #4015