need help on Regex. Say I have the following text:
* 1 FETCH (UID 1 FLAGS (\\Flag1 \\Flag2 \\Flag3 ....)
Is it possible to extract all of the flags? So a match (.NET) that will contain the groups Flag1, Flag2, Flag3.
I can use
FLAGS \((?<flags>.*?\)
to get \\Flag1 \\Flag2 \\Flag3 ...., which is close, but not quite there.
Try this (tested online):
Update: this should get rid of the bracket in the end: