Help for this page

Select Code to Download


  1. or download this
        s{(
            (?:[^\n]{1,15})(?=\n|$) # Line requiring no wrapping
    ...
          | (?:[^\n]{15})(?!\n)     # Line to be wrapped, not at comma
          )\n?
        }{$1\n}gx;
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    19,20,21,22,23,
    24,25,26,27
    )               # Yay!