I am given this 2 lines where the second line has a tab right after 'a',
a b C d
a[tab]b c d
The result I want is:
First Line: "a", " bcd"
Second Line: "a", "[tab]b c d"
I have to use only one split function and I had tried split("\\s+", 2)
, but it didn't work as expected.