0

I have a string that looks something like - " [value1]\n[value2]\n[value3]\n[value4]\n" or like: " [value1]\n[value2]\n[value3]\n[value4]"

I'm trying to get a list of all my values in brackets: value1, value2, value3, value4

My research showed me to use Regex, but I'm not getting any matches.

Can anybody help?

Here's a sample of what I tried:

Regex.Matches(myText, "[(.*?)]")

0 Answers0