Differentiate the line feed and carriage return records
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 12:36 AM
Hi,
I need to differentiate the records of Line feed and Carriage return in CSV file.
For Example:
Test1 (LF)
Test2 (CR)
In the above records I need to differentiate both the records and LF should in one file and the CR should be in another.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2018 07:39 PM
You may be able to use string.match() or string.search() for your case. Your regex would be something like /\n/
for LF or /\r/
for CR.
