fix of #784.

Handle the case of pcre combined with a relative content, where pcre has the
^ set to match from start of line and we discontinue matching on not finding a
match.