in reply to Re^6: Splitting multiline string into words, the stuff between words, and newlinesin thread Splitting multiline string into words, the stuff between words, and newlines
my @fragments = $book =~ /\G(?:[^\n\w]+?\b{wb})+|.+?\b{wb}/sg; [download]