ern may match from the character immediately following one of them instead of from the very start. For example, the pattern </P>

<P>(.*) second</P>

<P>matches the subject "first\nand second" (where \n stands for a newline character) with the first captured substring being "and". In order to do this, PCRE has to retry the match starting after every newline in the subject.</P>

<P>If you are using such a pattern with subject strings that do not contain newlines, the best performance is obtained by set