"R. Joseph Newton" wrote:
Sorry Diego,
Turns out that there was a logic error in the code I posted that gave a false positive
on the match.
> #!perl -w
>
> use strict;
> use warnings;
>
> my $pat1 = qr /Hi.*?\sBye/;
> # my $pat2 = qr /(Hi|[Hh]ello).*?\sBye--I'll sure miss you\!/; # Error
Th
Diego Riano wrote:
> I am trying to put it in a better way, (I hope :-))
>
> What I am trying to do is check if two patterns could recognize the same
> string, for example:
> $pattern1=[ag]oprs[cd]x9;
> $pattern2=[agpr]oprs;
>
> these two patterns would recognize, both, a set of strings. howe
I am trying to put it in a better way, (I hope :-))
What I am trying to do is check if two patterns could recognize the same
string, for example:
$pattern1=[ag]oprs[cd]x9;
$pattern2=[agpr]oprs;
these two patterns would recognize, both, a set of strings. however
there will be some strings tha