Help for this page

Select Code to Download


  1. or download this
    $ perl -E 'my $re = qr{(?x: PAT )}; say $re'
    (?^u:(?x: PAT ))
    
  2. or download this
    (?d-imnsx:(?u-d:(?x: PAT )))
    
  3. or download this
    $ perl -E 'my $re = qr{ PAT }msx; say $re'
    (?^umsx: PAT )
    
  4. or download this
    (?d-imnsx:(?umsx-d: PAT ))
    
  5. or download this
    $ perl -E 'my $re = qr{(?d-imnsx:(?u-d:(?x: PAT )))}'
    Regexp modifier "d" may not appear after the "-" in regex; ...
    $ perl -E 'my $re = qr{(?d-imnsx:(?umsx-d: PAT ))}'
    Regexp modifier "d" may not appear after the "-" in regex; ...
    
  6. or download this
    $ perl -E  'my $re = qr{ PAT }msx; say $re; $re = qr{ $re }msx; say $r
    +e; $re = qr{ $re }msx; say $re; say "..."'
    (?^umsx: PAT )
    (?^umsx: (?^umsx: PAT ) )
    (?^umsx: (?^umsx: (?^umsx: PAT ) ) )
    ...