C# Regex ignoring non-capturing group
2016-04-05 10:22
155 查看
E.g I want match the keword "3398" after "red" from the string "This is red with number 3398".
Using non-capturing group regex will help me sovle this problem.
Ref: http://stackoverflow.com/questions/30667041/regex-replace-ignoring-non-capturing-group
Using non-capturing group regex will help me sovle this problem.
(?<=red.*?)\d+
Ref: http://stackoverflow.com/questions/30667041/regex-replace-ignoring-non-capturing-group
相关文章推荐
- mono嵌入式应用研究(二):虚拟机的初始化
- c# log组件 log4net使用介绍
- C# 利用ICSharpCode.SharpZipLib实现在线压缩和解压缩
- leetcode 3 : Longest Substring Without Repeating Characters 最长无重复子串 (C# 语言版)
- C# The process cannot access the file because it is being used by another process
- 基于C# 生成Zip压缩包代码
- C# 操作INI配置文件
- C# Distinct使用,支持对象的相等比较
- vs2015中 c#如何 编译成低版本供xp使用
- C#16位MD5加密算法
- C#流(stream)
- .Net/C# 实现 中国移动 CMPP v3.0 ISMG <-> SP 收发短信的 SP 客户端 (CMPP SP Client)
- C#多线程网页采集器(Spider)
- C#实现的ReplaceFirst和ReplaceLast
- C# winform程序怎么打包成安装项目(图解)
- C#Winform程序如何发布并自动升级(图解)
- c#怎么分析网页的DOM?
- C#读取INI文件
- C#面向对象整理
- C#(近期目标)