This is the string I want to search in.
Make {The Most|One of the most} Out Of Your {Real Estate|Realty|Property} {Purchase|Acquisition} When You {Follow|Comply With|Adhere To} { something } These Tips
It should search for and return parts of strings that are enclosed in curly braces { } and must contain one or more pipe | symbol inside them.
Following is the regexp I came up with but it doesn't work.
/^{?([^{]*\|)*}$
Expected Output
[{The Most|One of the most}, {Real Estate|Realty|Property}, {Real Estate|Realty|Property}, {Purchase|Acquisition}, {Follow|Comply With|Adhere To}]
Note that { something } shouldn't be a part of the output.
Thanks in advance