I have this string
options{Red | Blue | Green}
And I want to capture the options inside the curly braces one by one. So far I was able to capture the inner part, but I don't understand how to set the pattern SPACELINESPACE | as a separator and capture Red Blue and Green.
For capturing the string inside the curly braces I used this
options{(.)*}
I had some results in capturing the values serapately with this:
(.+?)(?: \| |$)
But when I compose everything like this options={(.+?)(?: \| |$)} I do not capture anything