最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
C# 取得双引号内的字符串正则
时间:2022-06-25 08:31:31 编辑:袖梨 来源:一聚教程网
个字符串中带有双引号,如何获取到双引号内的字符串呢?
例如string words="hello"world"";要获取到"world"
using system.text.regularexpressions;
string words = "hello"world""; regex regex = new regex(""[^"]*""); string result = regex.match(words).value.replace(""", "");
相关文章
- 正则表达式之字符串模式匹配实例详解 09-28
- 利用正则表达式进行中文排版的实例教程 09-28
- 轻松掌握正则表达式findall函数详解 09-28
- 正则表达式用法详解 09-28
- 轻松入门正则表达式之非贪婪匹配篇详解 09-28
- 36个正则表达式(开发效率提高80%) 09-28