Help for this page

Select Code to Download


  1. or download this
    $searches,
    # An arrayref of hashrefs like:
    ...
    #    regex        => # USE PERL REGULAR EXPRESSION (BOOLEAN): VOIDS OT
    +HER OPTIONS ABOVE
    #    yn           => # WHETHER TO MATCH (YES) OR NOT (NO) (BOOLEAN)
    # }
    
  2. or download this
    ( $ch, $noreplace )= resetBadBooleans( $ch, $noreplace );
    for my $search (@$searches) {
    ...
        $search->{$_}= resetBadBooleans($search->{$_});
      }
    }
    
  3. or download this
    my @bool_keys= qw( case wholeword startverse endverse flexdelimit rege
    +x yn );
    @{$_}{@bool_keys}= resetBadBooleans(@{$_}{@bool_keys})
      for @$searches;
    
  4. or download this
    $regex= composeRegex($search->{case}, $search->{wholeword}, $search->{
    +startverse}, $search->{endverse}, $search->{flexdelimit}, $search->{d
    +elimitchars}, $search->{regex}, $search->{comp})
    
  5. or download this
    $regex= composeRegex($search);
    
    ...
          = @{$search}{qw( case wholeword startverse endverse flexdelimit 
    +delimitchars regex comp )};
      ...
    }