求一个关于双引号的正则表达式

AlanSmith613 2009-08-04 02:12:27
有一个rc文件里的string是这样
IDS_WELCOME_PARAGRAPH_01
"We invite you to join our HP Product Improvement Study to help improve the quality, reliability, and performance of HP printers. If you accept, we'll collect information about your HP printer(and any future installations of the same printer model) to identify usage trends and patterns."

我要取的是We invite you to join our HP Product Improvement Study to help improve the quality, reliability, and performance of HP printers. If you accept, we'll collect information about your HP printer(and any future installations of the same printer model) to identify usage trends and patterns.
也就是双引号之间的部分,正则是这样写的
\s(^\042).*(^\042)\n
可是一直不匹配,求高手解答,谢谢了
...全文
160 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
cpp2017 2009-08-04
  • 打赏
  • 举报
回复
Regex reg = new Regex(@"""([^""]*?)""", RegexOptions.IgnoreCase);

16,553

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧