#!/usr/bin/perluse warnings;use feature 'say'; $s = "a{b}{c}{d}";my @res = ($s) =~ /{([^{}]+)}/g;say "@res";
Standard input is empty
b c d
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!