<table border="1" id="tab">
<tr><td>34,5</td><td>3,5</td><td>36</td><td>23</td></tr>
<tr><td>34,5</td><td>3,5</td><td>36</td><td>23</td></tr>
<tr><td>34,5</td><td>3,5</td><td>36</td><td>23</td></tr>
</table>
<script>
tab.onmouseup = e => console.log(getSelection().toString().split(/\t+|\n+/));
</script>