使用 AS3(actionscript3) 正则表达式我需要检索双引号之间的数据

Using AS3(actionscript3)regular expression i need to retrieve data between double quotes

我有这样的原始数据 --> function geoip_country_code(){return"IN"}function geoip_country_name(){return"India"}函数geoip_city(){return"Chennai"}函数geoip_region(){return"TN"}函数geoip_region_name(){return"Tamil Nadu"}函数geoip_latitude(){return"13.052414"}函数geoip_longitude(){return"80.250825 "}function geoip_postal_code(){return""}function geoip_area_code(){return"0"}function geoip_metro_code(){return"0"}

我需要检索双引号之间的数据。那是我同样需要 IN,India,Chennai。

我不知道正则表达式。所以任何人都请为此提供解决方案。

谢谢

您要找的正则表达式是

/"([^"]*)"/

解释:匹配两个引号和中间任意数量的 (*) 个不是引号 (^") 的字符。捕获组 (…) 将 return 为您提供所需的字符。

我不太了解 ActionScript,但 String.match 应该是正确的选择。