C
C#2y ago
RP-1 MVac

Create regex that returns the match only

I have this regex and I want to only get whats inside after the --output in the string (without quotes)
9 Replies
333fred
333fred2y ago
Look at the Groups property on the result of running the regex I believe you will want group 1, iirc
RP-1 MVac
RP-1 MVac2y ago
What to do then? "--ouput "XX" somethingElse" "--ouput XX somethingElse" are examples
RP-1 MVac
RP-1 MVac2y ago
I want to get XX in both cases
333fred
333fred2y ago
You don't want [\"] for that You want \"? Aka: a " optionally
RP-1 MVac
RP-1 MVac2y ago
Probably Dont know much about regex I know, that I am supposed to find out myself but can someone just tell me what to type to get the desired result?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
RP-1 MVac
RP-1 MVac2y ago
XX only XX Everything else should be discarded
Yawnder
Yawnder2y ago
fred answered, you want group 1.