Regex Group Contains
hey simple easy question, but are there ways to access individual capture groups in a regex match? I want to say
13 Replies
regexMatch.Groups[2].Value.Contains("401")
thanks brotha
looks like a match class
word
you could consider using named groups
(?<name>pattern)
if you did that you can access the group like this
perf
i appreciate it guys
that looks like its in the actual regex declaration?
hang on
is that right?
u forgot a
?
before <name>
oops
huh there's 2 questions marks in there now. i can do some debugging no worries
something doesn't look right
yeah i already have a star in there i should probably remove the first question mark lol
idk tbh
i can't debug atm i will later
i mean there are no
(
before name2 and name3
ah okjust had to put parantehses around it
lmao
also why capture the whole
name
group, it's just constant+name2
ope didn't mean to do that tbh