-3

What this regex will do :

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

BalusC
  • 992,635
  • 352
  • 3,478
  • 3,452
VJS
  • 2,549
  • 6
  • 31
  • 58

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
  • 495
  • 3
  • 12