Java how to split string by length

Java how to split string by length
/**
 * @author lautturi.com 
 * Java example: split string by length in java
 */

import java.util.*;

public class Lautturi {
	public static void main(String[] args){
		
		String str = "helloworldjavaperlpython";
		String[] arr = str.split("(?<=\\G.{4})");
		System.out.println(str);
		System.out.println(Arrays.toString(arr));
		
	}
}
Sourc‮al.www:e‬utturi.com

output:

helloworldjavaperlpython
[hell, owor, ldja, vape, rlpy, thon]
Created Time:2017-09-30 14:32:12  Author:lautturi