$_ = 'XABX'; print "<$_>" for split /A|B/; __END__ <>