© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
27 replies
mrdudebro1

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
}
if(regex.Group(2).contains("401") {
//do some stuff with
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Regex help.
C#CC# / help
11mo ago
Regex conditional
C#CC# / help
3y ago
✅ Learning Regex
C#CC# / help
3y ago