Help for this page

Select Code to Download


  1. or download this
    $text = 'ab';
    if ($text =~ /(a*)((?:ab)*|b*)/) {
    ...
    if ($text =~ /(a*)(b*|(?:ab)*)/) {
        print "'$1', '$2' \n";
    }
    
  2. or download this
    'a', ''
    'a', 'b'