Search
Get Started
C
C#
•
3y ago
Is this dress code
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,110
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
if(regex.Group(2).contains("401") {
//do some stuff with
}
if(regex.Group(2).contains("401") {
//do some stuff with
}
Similar Threads
Regex help.
C
C# / help
9mo ago
Regex conditional
C
C# / help
3y ago
✅ Learning Regex
C
C# / help
3y ago