All pastes #243575 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-11-08 17:39 UTC
rendered paste body
#!/usr/bin/perl

my $foo = "<bar>totoz<bar>";

if ($foo =~ /<(\w+)>(\w+)<\1>/) {
   print "< $1 > : $2\n";
}