Slack, - :
/save someurl.com "This is a \"quote\" in the caption"
:
https://someurl.com "This is a \"quote\" in the caption"
, , .
, , , :
~(\S+) "(.+)"~
: ()
$input = 'https://someurl.com "This is a \"quote\" in the caption"';
list($url, $caption)=(preg_match('~(\S+) "(.+)"~', $input, $out) ? array_slice($out,1) : ['','']);
echo "url: $url\ncaption: $caption";
:
url: https://someurl.com
caption: This is a \"quote\" in the caption