in reply to Simple Substitution

I would use a capture group, like this:

s/([^?]\')/$1\n/g;