in reply to Re: Re: Problem with regex from Learning Perl (3rd edition)
in thread Problem with regex from Learning Perl (3rd edition)

The thing is that "hello"you" should not match because it has a " in the middle, which is what [^"] is taking care of.

I misread the question. If you're trying to reject strings with embedded quotes,

"What happens," he asked, "with a string like this?"
Do you reject this, or match "What happens," and "with a string like this?" ?

You've bitten of a problem that gets harder the closer you look at it.