I get the following error (Win2K, perl v5.8.6):#!/usr/bin/perl use strict; use warnings; my $test_string = "This is not a waffle"; print "Match: $1\n" if $test_string =~ /(?:f)\1/;
Note that this is actually referring to the lack of capturing parens. If I change the last line to
print "Match: $1\n" if $test_string =~ /((?:f)\1)/;
there are no errors but also no match. Interesting, if you ask me.
In reply to Re^2: Regular Expressions
by Nkuvu
in thread Regular Expressions
by y8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |