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://*.com/questions/30667041/regex-replace-ignoring-non-capturing-group

上一篇:Java加解密与数字签名


下一篇:CSS中可以继承和不可继承的常见属性