in reply to Re^2: Regexp matching words, not doing what I expect
in thread Regexp matching words, not doing what I expect
The 5.10 features can easily be avoided: the (?-1) can be replaced by just copying the [A-Za-z'-] part, and the (*FAIL) can be replaced with (?!).