- or download this
use strict;
use warnings;
...
my $regexp = qr/^(.*?)((=<)|[<=>])(.*)/;
my $exp = YAPE::Regex::Explain->new($regexp);
print $exp->explain;
- or download this
NODE EXPLANATION
----------------------------------------------------------------------
...
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
- or download this
my $re = qr{
^(.*?)
...
)
(.*)
}x;
- or download this
my $re = qr{
^ # Beginning of line
...
\s* # Optional whitespace
([a-zA-Z0-9_]+) # Capture(3) Alphanumeric RHS
}x;
- or download this
my $operand = '[a-zA-Z0-9_]+' ;
my $re = qr{
...
\s* # Optional whitespace
($operand) # Capture(3) Alphanumeric LHS
}x;
- or download this
use strict;
use warnings;
...
a>b
a=>b
a=<b