I have a strange issue in my Web Page, specifically with a text area element that obtains the clipboard from the user.
The user perform a CTRL+V; and I created a event to get the data with the event KeyUp.
…this works fine…
But, when I try to divide by each “row” of this textarea; start the problems…
The input can be like this example:

The data reads something like that:
Row1[0][HT]Row1[1][LF]”Row2[0] Comment line 1[LF]Row2[0] Comment line 2″[HT]Row2[1]
Where:
[HT] means {Tab}
[LF] means {New line}
I use:
var myData = document.getElementById("TextAreaElement").value;
var vArray = myData.split(/\n/);
But this array return me 3 lines…

Somebody knows any solution or alternative way?
Well, I don’t find the way to work with some regular expression or a javascript method (I believe that can do it). I worked a different way to split the info.
I used AJAX to send this information to the server and perform the split in VB.
In resume:
I get the max columns (split by tabs).
Get and evaluate each value of the array of tabs.
If start with double quotes, tried to find the end of the double quotes (before that, replaced the mid double quotes with a unique text)
Every time that evaluated an item of the original Array, I deleted each item (Always evaluate the item 0)…
If find a new line (final of the row), only removed the text of the “final column” of the previous row.
I hope help to someone with the same problem. Cheers.
Here is the code:
‘ This is a label in VB code
Skip_remove: