Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    push @parts, $& while / (Point\s[\d.]+:) .*? (?=Point|\z) (?!\1) /gsx;
    
    use Data::Dump 'dd'; dd \@parts;
    
  2. or download this
    [
      "Point 1.3.4: A piece of text.\n\n",
    ...
      "Point 1.3.6: Another piece of text. Point 1.3.6: For some reason th
    +is piece of text isn't finished yet.\n\nPoint 1.3.6: In fact, this pi
    +ece of text even broke into a new line.\n\n",
      "Point 1.3.7: Finally, a new piece of text.\n\n",
    ]