I'm currently working on a PHP project and I've been struggling with regular expressions. I need some assistance in creating a regular expression that can extract values enclosed in double quotes.
Here's the scenario: I have a string containing multiple values, and I want to extract only the values that are enclosed in double quotes. For example, if I have the string: "This is a "test" string", I want to extract just the value "test" enclosed in double quotes.
I've tried using the preg_match function in PHP, but I couldn't figure out the correct regular expression pattern to use. Can anyone please guide me on how to achieve this? Any help would be greatly appreciated!
Thanks in advance.