Help for this page

Select Code to Download


  1. or download this
    $string =~ s/^(.{0,$maxlength})\b.*$/$1.../s;
    
  2. or download this
         {n}?   Match exactly n times
         {n,}?  Match at least n times
         {n,m}? Match at least n but not more than m times