Convert CSV records to TSV: Difference between revisions
Content added Content deleted
m (spell out what had to have been the intent of what was previously r'[ntr]) |
(discard previous edits -- I overlooked the r'REGEX somehow) Tag: Manual revert |
||
Line 52: | Line 52: | ||
# each embedded LF (LINEFEED) must be replaced by the two-character string "\n"; |
# each embedded LF (LINEFEED) must be replaced by the two-character string "\n"; |
||
# each embedded CR (CARRIAGERETURN) must be replaced by the two-character string "\r"; |
# each embedded CR (CARRIAGERETURN) must be replaced by the two-character string "\r"; |
||
# each backslash that occurs in a two-character substring of the form '\\[nrt]' must be duplicated; |
# each backslash that occurs in a two-character substring of the form r'\\[nrt]' must be duplicated; |
||
# each literal NUL character (#x0) should be replaced by the two-character string "\0". |
# each literal NUL character (#x0) should be replaced by the two-character string "\0". |
||
Line 92: | Line 92: | ||
Use the following as a test file, noting any discrepancies with the |
Use the following as a test file, noting any discrepancies with the |
||
requirements, and specifically stating how strings containing backslashes |
requirements, and specifically stating how strings containing backslashes |
||
(besides those preceding |
(besides those preceding r'[nrt]) are transformed. |
||
; TEST FILE |
; TEST FILE |