use strict; use warnings; use Test::More tests => 3; my $re = qr{X[^XH]*?H[^HD]*?D}; my $str = "RXVXCHHHZHDT"; unlike("RXVXCHHHZHDT", $re); like( "RXVXCHBNDT", $re); unlike("RXVXCHHHZHDT", $re);
In reply to Re: Regex logic
by moritz
in thread Regex logic
by orange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |