in reply to Simple Substitution
$_ = "AAA+XXXX+1234++here?'s some text+eol1'BBB+XXXX+1234++here?'s som +e text+eol2'CCC+XXXX+1234++here?'s some text+eol3'"; s/(?<!\?)'/\n/g; print; [download]