I'm not positive, but I think you may need to drop the "?", like this:
/title=[\"|\'|](.+)[\"|\'|](\s|\>|\/)/
This will only do the S&R if there is at least one char between the quotes in the title tag. I haven't tested this but unless I've misunderstood you, this should work.