Help for this page

Select Code to Download


  1. or download this
    @x = split /(?{
        # This populates $^R
    ...
        # This returns an impossible pattern for long matches
       (pos()-$^R < 5) ? "" : "no\\bmatch"
      })/, $string;
    
  2. or download this
    # Be sure that these start clean!
    my %bad_r;
    ...
          "no\\bmatch"
        }
      })/, $string;