Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    __DATA__
    something start: some text stop: other text here start: again somethin
    +g stop: may be some text here start: and finally stop: and maybe some
    +thing here
    
  2. or download this
    pos = rindex($_, $start);
    m/\Q$start\E(.*?)\Q$end\E/gs;
    print $1;