© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Regex help.
C
C# / help
11mo ago
Regex conditional
C
C# / help
3y ago
✅ Learning Regex
C
C# / help
3y ago