====== Backslash Expressions ====== Backslash Expressions are a substitute/workaround for the lack of multi-line support [[Regular Expressions]] support in Programmer's Notepad. The Regular Expression engine is scheduled to be updated, but until then Backslash Expressions offer some of the missing functionality. \\Note\\: Backslash Expressions and Regular Expressions should not be used together, as one will override the other. ==== Syntax ==== ^ Text ^ Replacement ^ | ''\t'' | Tab | | ''\r'' | Carriage-return (CR) | | ''\n'' | Line-feed (LF), aka unix-style line ending | | ''\r\n'' | CR+LF, aka windows-style line ending | ==== Examples ==== ^ Description ^ Text ^ Search ^ Replace ^ Result ^ | Turn unix-style line endings to windows-style (LF->CRLF) | Line 1 ''LF''\\ Line2 ''LF''| \n | \r\n | Line 1 ''CRLF''\\ Line 2 ''CRLF'' | | Replace two blank lines with one (windows-style line endings) | Line 1\\ \\ \\ Line 4 | \r\n\r\n | \r\n | Line 1\\ Line 4 | ==== See Also ==== * [[Regular Expressions]] - more powerful search/replace syntax