Help for this page

Select Code to Download


  1. or download this
    print "good string\n" if $_~~ /^({(?:[^{}]++|(?1))*+})/;
    
  2. or download this
    perl -ne 'print "good string\n" if $_~~ /^({(?:[^{}]++|(?1))*+})/;'