Hello,
How we can separate a backreference from a digit?
print "Match1\n" if "aa1" =~ /^(a)\1(#)1$/; # comment not works print "Match2\n" if "aa1" =~ /^(a)\1.{0}1$/; # works, but it's very ug +ly print "Match3\n" if "aa1" =~ /^(a)\1 1$/x; # works, but I don't want + to use x modifier... print "Match4\n" if "aa1" =~ /^(a)\g{1}1$/; # works, but since Perl 5 +.10...
Regards
Serge
In reply to How we can separate a backref from a digit? by Serge314
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |