In some PHP files, I want to replace "?>\s\t\n\EOF"
.
I test this for search all files where this problem occurred using:
ack "\?\>[\s\n\t]+\z"
I take result but I want replace this by ?>EOF
only.
I test another command with "sed":
sed 's/?>[\n\t\s]+\z/?>/'
Do you have some tips?
example :
?>