-3

What this regex will do :

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

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
VJS
  • 2,891
  • 7
  • 38
  • 70

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