Im looking for a ruby regex to match this
@variables{
color1 | #FFFFFF | links;
color2 | #c1dfee | frame;
}
however – what is inside the braces is not important. I just want to capture that @variables{} with its content. So I guess Im looking for something like /@variables{MATCH-ANYTHING}/m
Thanks.
Try:
[^}]matches any character except}.