I have strings containing dash - characters, I want to extract the portion of the string before the first dash character is encountered except in the case where the dash is in single/double quotes.
ie.
Theory 'Gabe B - Tailor' Jacket - nordstrom.com I want to extract Theory 'Gabe B - Tailor' Jacket
Theory "Gabe B - Tailor" Jacket - nordstrom.com I want to extract Theory "Gabe B - Tailor" Jacket
Tailor Jacket - Jackets - nordstrom.com I want to extract Tailor Jacket
What regex can I use with preg_match to achieve the result?