I have
String input = "one two three four five six seven";
Is there a regex that works with String.split()
to grab (up to) two words at a time, such that:
String[] pairs = input.split("some regex");
System.out.println(Arrays.toString(pairs));
results in this:
[one two,two three, three four,four five,five six,six seven]