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