C
C#3y 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
333fred3y 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 MVacOP3y ago
What to do then? "--ouput "XX" somethingElse" "--ouput XX somethingElse" are examples
RP-1 MVac
RP-1 MVacOP3y ago
I want to get XX in both cases
333fred
333fred3y ago
You don't want [\"] for that You want \"? Aka: a " optionally
RP-1 MVac
RP-1 MVacOP3y 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 User3y ago
Message Not Public
Sign In & Join Server To View
RP-1 MVac
RP-1 MVacOP3y ago
XX only XX Everything else should be discarded
Yawnder
Yawnder3y ago
fred answered, you want group 1.
Want results from more Discord servers?
Add your server