gpt4 book ai didi

c# - 获取给定字符串中的特定句子

转载 作者:太空宇宙 更新时间:2023-11-03 14:01:56 25 4
gpt4 key购买 nike

示例字符串如下所示。

"{"This is the allstate company url":{"previous":"https://graph.facebook.com/allstate/feedaccess_token=AAACEdEose24VEBPa9&limit=25&since=13369&__previous=1","the comany url fetched"}}

我要从上面的字符串中提取

"https:\/graph.facebook.com/allstate/feedaccess_token=AAACEdEose24VEBPa9&limit=25&since=13369&__previous=1"

该怎么做?在我的真实情况下,我需要获取的字符串前后有很多句子。

最佳答案

看看Json.NET ,它可以将您的 JSON 字符串解析为一个有意义的对象,然后您可以在代码中与之交互。

关于c# - 获取给定字符串中的特定句子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10550323/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com