Hi,
I have below code :
What is the code doing ?? what function of the regular expressionPHP Code:my($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 ??PHP Code:$abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/;


Reply With Quote
Bookmarks