in reply to Re^2: Splitting a Sentence
in thread Splitting a Sentence
Works like a charm. BTW, I was gonna say that
m/[A-Z].+?[.;](?<!\.{2,})(?=[^.;][A-Z]|\s*$)/g
would perhaps be even better, so as to not hardcode any specific number of periods for run-on sentences, but it turns out that:
Variable length lookbehind not implemented in regex m/[A-Z].+?[.;](?<! +\.{2,})(?=[^.;][A-Z]|\s*$)/
Sigh. (Oh well, at least there's workarounds; see Why is variable length lookahead implemented while lookbehind is not?.)
|
|---|