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
Look at the
Groups
property on the result of running the regex
I believe you will want group 1, iircWhat to do then?
"--ouput "XX" somethingElse"
"--ouput XX somethingElse"
are examples
Match.Groups Property (System.Text.RegularExpressions)
Gets a collection of groups matched by the regular expression.
I want to get XX in both cases
You don't want
[\"]
for that
You want \"?
Aka: a "
optionallyProbably
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•3y ago
Message Not Public
Sign In & Join Server To View
XX
only XX
Everything else should be discarded
fred answered, you want group 1.