this is a simple string You can also have embedded newlines in strings this way as it is okay to do Arnold once said: "I'll be back" You deleted C:\*.*? You deleted C:\*.*? This will not expand: \n a newline Variables do not $expand $either OUTPUT: |Example of string spanning multiple lines using heredoc syntax.| OUTPUT: |Example of the string Example of string spanning multiple lines using heredoc syntax. spanning multiple lines using heredoc syntax.| OUTPUT: |Example of the string spanning multiple lines using heredoc syntax.| OUTPUT: |Example of string spanning multiple lines using nowdoc syntax. Backslashes are always treated literally, e.g. \\ and \'.|