Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $string = '/.*uba$/i';
    ...
     print 'A: match' if 'uba' =~ $re;
    "
    (?:i:.*uba$)
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $string = '/.*u\/ba$/i';
    ...
    A: match
    (?^msx: \A foo (?^:(?i).*u\/ba$) )
    B: match