Regex Group Contains

hey simple easy question, but are there ways to access individual capture groups in a regex match? I want to say
if(regex.Group(2).contains("401") {
//do some stuff with
}
Was this page helpful?