G
Guest
Can I do something like search for a pattern but only get a part of the
pattern instead of the whole string as a match?
for example lets say I'm searching the following string:
Variable1=ABCD&Variable2=1234&Variable3=ASDF
and my regex pattern is "Variable2=[0-9]*"
can I do something to do that pattern so instead of my matches coming back
like
"Variable2=1234"
"Variable2=5678"
etc...
that I just get the actual number?
"1234"
"5678"
pattern instead of the whole string as a match?
for example lets say I'm searching the following string:
Variable1=ABCD&Variable2=1234&Variable3=ASDF
and my regex pattern is "Variable2=[0-9]*"
can I do something to do that pattern so instead of my matches coming back
like
"Variable2=1234"
"Variable2=5678"
etc...
that I just get the actual number?
"1234"
"5678"