Help for this page

Select Code to Download


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