Fix a bug in the main PCRE.

Seems like in `[^$]`, the `$` does not mean “the end point” but just
“dollars”. Performances are equivalent with the new proposal.