UB: C#'s Regex.Match returns whole string instead of part when matching

前端 未结 3 1608
小蘑菇
小蘑菇 2021-01-19 07:21

Attention! This is NOT related to Regex problem, matches the whole string instead of a part


Hi all. I try to do

Match y = Reg         


        
3条回答
  •  不知归路
    2021-01-19 08:01

    There is one capture group in the pattern; that is group 1.

    There is always group 0, which is the entire match.

    Therefore there are a total of 2 groups.

提交回复
热议问题