Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Zapier 格式化程序从连接的应用程序 (Drift) 获得的一行文本中提取国家代码。
字符串像这样进入 Zapier:
{"city":"Kissimee","region":"Florida","country":"US","countryName":"United States","postalCode":"34747","latitude":55.5555,"longitude ":-55.5555}
我试图让它只提取该行的两个字母的国家代码部分。
有任何想法吗?
这可以通过 Formatter 分两步完成。
在 country":" 拆分并保留第二段,然后在 " 拆分并保留第一段。
截屏:
或者你可以使用一个模式:
country\":\"(.*?)\"
截屏