我必须从密钥不能包含空格的字符串中捕获键值对。以下是适用于值的约束:
包含要提取的所有键/值对的单个字符串(为简单起见,使用/ for string delimiters):
/abc="hello how are you" xyz="I'm good. How are you?" pqr='Using " double quotes'/
我想解析上面的字符串并提取名称/值对:
abc="hello how are you"
xyz="I'm good. How are you?"
pqr='Using " double quotes'
答案 0 :(得分:3)