Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 14:09
Show Gist options
  • Save anonymous/4434837 to your computer and use it in GitHub Desktop.
Save anonymous/4434837 to your computer and use it in GitHub Desktop.
stdin
#!/usr/bin/perl
use strict;
use warnings;
my @arr = ("<f><e><e>stuff</e></e></f>" =~ /<f>(<e>((?1)|[^<>]+)<\/e>)<\/f>/g);
print join("\n", @arr);
print "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment