Suppose I had the following string I wanted to run a Regular expression on:
This is a test string with \"quotation-marks\" within it.
The \"problem\" I am ha
What you need to do is explicitly only match strings inside quotes that have -.
Use this:
(\"[^"]*.*?)-(.*?\")
Working example: http://regex101.com/r/jK5eL9
The only catch here is that it will only work for single instances of word-word in quotes. If you had, say, "word-word, and word-word" it will fail.