What is the code doing ?? what function of the regular expressionmy($abc) = "fred<hello>3hello"; $abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/; if (defined($1)) { print "$1\n"; } else { print "not found\n"; } }
Please advice what it do ??$abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/;
In reply to perl code question by abcdef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |