Home > Backend Development > PHP Tutorial > php-json 正则表达式匹配问题

php-json 正则表达式匹配问题

WBOY
Release: 2016-06-02 11:34:52
Original
1308 people have browsed it

phpjson正则表达式

有json表达式{"a":"aaaaaaaaa","aa":"baaaaaaaaa","aa":"caaaaaaaaa","b":{"c":1,"d":"ddddd"},"e":[1,2,5,9,7]}我用正则表达式/\".+\":\"[^\"]+\",/想分别提取"a":"aaaaaaaaa"和"aa":"baaaaaaaaa"还有"aa":"caaaaaaaaa"。但是运行结果确实直接"a":"aaaaaaaaa","aa":"baaaaaaaaa","aa":"caaaaaaaaa",一整串。求高手知道这是为什么

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template