Here is a given string:
{example1}{example2}{example3}
Below is the regular expression used to find items within curly braces {
anything in it
}
:
/\{.*?\}/g
Now, I am looking to extract them into an array for use with a for in
loop.
I am aiming for an array structure like this:
array("{example1}","{example2}","{example3}");
?