Help for this page

Select Code to Download


  1. or download this
    n = 
    1 - x
    ...
    3 - xxx.
    4 - xxx.x....
    5 - xxx.x.....x......
    
  2. or download this
    my $regex = '\A' . ('[^x]*x' x $n) .  '[^x]*';
    $foo =~ m{ ($regex) }xms;    # PBP orthodoxy :)
    
  3. or download this
    my $regex = '\A' . ('[^x]*?x' x $n);