Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    
    my $s = "abacada";               # 'bcd' delimited by 'a'
    print $s =~ /[^a]/g;             # prints 'bcd'
    $s =~ /([^a])(?{ print $^N })/;  # prints 'b'