I would like to return a array string[] or a list List<string> using regex.
I want to compare a string and return all values that starts with [ and end with ].
I am new to regex, so would you please explain the syntax that you will be using to produce the right results.
This regex
\[([^\[\]]*)\]means:\[– character[([^\[\]]*)– any character, excluding[]any number of repetitions, group 1\]– character]Update: