C# Regex ignoring non-capturing group

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.

(?<=red.*?)\d+

 

Ref: http://stackoverflow.com/questions/30667041/regex-replace-ignoring-non-capturing-group

posted @ 2016-04-05 10:22  Jeremy Wu  阅读(295)  评论(0编辑  收藏  举报