Help for this page

Select Code to Download


  1. or download this
    my $paragraphs = $comments_to_add =~
        s&(?=.*\S|\A)\s*(.*?)\s*?(?:\n(?!\r?\n)|\z)&<p>$1</p>&g;
    
  2. or download this
    my $paragraphs = $comments_to_add =~
        s&\s*(.+?)\s*?(?:\n(?!\r?\n)|\z)&<p>$1</p>&g;