-3

What this regex will do :

String[] lines = inputString.split("[\r]?\n");

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
VJS
  • 2,759
  • 6
  • 33
  • 61

1 Answers1

1

It will get an array and in each rows you will have a line even if it's a Linux or Windows enconding

mherbert
  • 505
  • 3
  • 12