I simplified my regular expressions and tested - it should work correct:
// heredoc (both types with double quotes and without it)
'/<<<("?)([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)\1[
|\r|\n](.*\n)?\2;?[\r\
n|\r|\n]/s'

// nowdoc
"/<<<'([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)'[
|\r|\n](.*\n)?\1;?[
|\r
|\n]/s"

-- 
<http://forum.pspad.com/read.php?2,55797,56456>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem